]> kolegite.com Git - vmks.git/commitdiff
Update external_interrupt.ino
authorVladimir Garistov <vl.garistov@gmail.com>
Sun, 1 Nov 2020 15:17:10 +0000 (15:17 +0000)
committerVladimir Garistov <vl.garistov@gmail.com>
Sun, 1 Nov 2020 15:17:10 +0000 (15:17 +0000)
external_interrupt/external_interrupt.ino

index 77ba9304c3733058f5724e6706f1ade8152a1d7b..597aa501dbe268ceac4f4d7669bf4084099e5fa4 100644 (file)
@@ -20,18 +20,18 @@ void loop()
        slow_computation();
        
        if (led_state)
-       Serial.println("LED in on.");
+               Serial.println("LED in on.");
        else
-       Serial.println("LED in off.");
+               Serial.println("LED in off.");
 }
 
 void button_pressed_ISR(void)
 {
        if (led_state)
-       {
-       led_state = 0;
-       digitalWrite(LED_PIN, LOW);
-       }
+       {
+               led_state = 0;
+               digitalWrite(LED_PIN, LOW);
+       }
        else
     {
        led_state = 1;