Added callback to ISR (miceuz)
[hackover2013-badge-firmware.git] / main.c
diff --git a/main.c b/main.c
index 853769a..bb2c280 100644 (file)
--- a/main.c
+++ b/main.c
     SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */
 /**************************************************************************/
-#include <stdlib.h>
-#include <stdio.h>
-#include <string.h>
-#include <time.h>
-
 #include "projectconfig.h"
 #include "sysinit.h"
 
@@ -69,12 +64,12 @@ 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
     #ifdef CFG_INTERFACE 
-      // cmdPoll(); 
+      cmdPoll(); 
     #endif
   }
 
This page took 0.023285 seconds and 4 git commands to generate.