Fixed USB VID/PID
[hackover2013-badge-firmware.git] / main.c
diff --git a/main.c b/main.c
index 1ab3bf2..80c0e8e 100644 (file)
--- a/main.c
+++ b/main.c
@@ -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, lastSecond % 2);
     }
 
     // Poll for CLI input if CFG_INTERFACE is enabled in projectconfig.h
This page took 0.021452 seconds and 4 git commands to generate.