Fixed LED logic
[hackover2013-badge-firmware.git] / tools / examples / default / main.c
index 6d5c158..7c2bd31 100644 (file)
@@ -68,7 +68,7 @@ int main(void)
     if (currentSecond != lastSecond)
     {
       lastSecond = currentSecond;
-      gpioSetValue(CFG_LED_PORT, CFG_LED_PIN, ~(gpioGetValue(CFG_LED_PORT, CFG_LED_PIN)));
+      gpioSetValue(CFG_LED_PORT, CFG_LED_PIN, !(gpioGetValue(CFG_LED_PORT, CFG_LED_PIN)));
     }
 
     // Poll for CLI input if CFG_INTERFACE is enabled in projectconfig.h
This page took 0.02361 seconds and 4 git commands to generate.