save fuse prog command line in a comment
[protos/xbee-avr.git] / main.c
diff --git a/main.c b/main.c
index 8e2aa0e..0d5cad6 100644 (file)
--- a/main.c
+++ b/main.c
@@ -26,7 +26,7 @@
  */
 
 /* fuses:
- * avrdude -p atmega1284p -P usb -c avrispmkii -U lfuse:w:0xff:m -U hfuse:w:0x99:m -U efuse:w:0xff:m
+ * avrdude -p atmega1284p -P usb -c avrispmkii -U lfuse:w:0xff:m -U hfuse:w:0x91:m -U efuse:w:0xff:m
  */
 
 #include <aversive.h>
@@ -52,6 +52,7 @@
 #include <rdline.h>
 #include <timer.h>
 
+#include "eeprom_config.h"
 #include "beep.h"
 #include "main.h"
 
@@ -247,7 +248,7 @@ int xbee_recv_data(struct xbee_recv_hdr *recvframe, unsigned len)
                        val += 512;
                        spi_servo_set(0, val);
                        break;
-                                 }
+               }
                case RC_PROTO_TYPE_RANGE: {
                        struct rc_proto_range *rcr =
                                (struct rc_proto_range *) recvframe->data;
@@ -660,9 +661,9 @@ int main(void)
                fprintf(stderr, "cannot register default channel\n");
                return -1;
        }
-
        sei();
 
+       eeprom_load_config();
        xbee_mainloop();
        return 0;
 }