first cut at turnon scripts for EasyTimer v2
[fw/altos] / src / easymega-v1.0 / ao_easymega.c
index 5cef758a5842108a2f741cd20a6b3c4ff63cb2f5..d00585f9b234998da202006a5ed5b9f91e4a209c 100644 (file)
@@ -1,9 +1,10 @@
 /*
- * Copyright © 2011 Keith Packard <keithp@keithp.com>
+ * Copyright © 2014 Bdale Garbee <bdale@gag.com>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -21,7 +22,6 @@
 #include <ao_mma655x.h>
 #include <ao_log.h>
 #include <ao_exti.h>
-#include <ao_packet.h>
 #include <ao_companion.h>
 #include <ao_profile.h>
 #include <ao_eeprom.h>
@@ -43,8 +43,8 @@ main(void)
 #endif
 
        ao_task_init();
-       ao_led_init(LEDS_AVAILABLE);
-       ao_led_on(AO_LED_GREEN);
+       ao_led_init();
+       ao_led_on(LEDS_AVAILABLE);
        ao_timer_init();
 
        ao_i2c_init();
@@ -91,6 +91,7 @@ main(void)
        ao_sample_profile_init();
 #endif
 
+       ao_led_off(LEDS_AVAILABLE);
        ao_start_scheduler();
        return 0;
 }