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

index 597aa501dbe268ceac4f4d7669bf4084099e5fa4..1d8b71fd3e515dfa536c0b56a699a7efa2f1846c 100644 (file)
@@ -32,11 +32,11 @@ void button_pressed_ISR(void)
                led_state = 0;
                digitalWrite(LED_PIN, LOW);
        }
-       else
-    {
-       led_state = 1;
-       digitalWrite(LED_PIN, HIGH);
-    }
+       else
+       {
+               led_state = 1;
+               digitalWrite(LED_PIN, HIGH);
+       }
 }
 
 void slow_computation(void)