From 772d46626a3432dfef6be11e856e69e25e5b5559 Mon Sep 17 00:00:00 2001 From: Kevin Townsend Date: Sun, 1 Apr 2012 01:39:12 +0200 Subject: [PATCH] Minor speed tweek --- tools/examples/default/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/examples/default/main.c b/tools/examples/default/main.c index 7c2bd31..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 -- 2.20.1