X-Git-Url: http://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/517dd479c063e0db2d1a53d92e4202988270e74d..a8d5ea1a6a2883620b52f5f1f6089c3eafdeccc6:/main.c?ds=sidebyside diff --git a/main.c b/main.c index 6d5c158..8cff6f6 100644 --- a/main.c +++ b/main.c @@ -60,7 +60,7 @@ int main(void) uint32_t currentSecond, lastSecond; currentSecond = lastSecond = 0; - + while (1) { // Toggle LED once per second @@ -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