X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/20c30c8c53dc90381bf24a56d4d5f98d407406dd..00f97ad08d681505179002d722d7a5f8fb192f35:/tools/examples/default/main.c diff --git a/tools/examples/default/main.c b/tools/examples/default/main.c index 6d5c158..80c0e8e 100644 --- a/tools/examples/default/main.c +++ b/tools/examples/default/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