diff main.c @ 331:5de3fc71ce48

- Make the python work on openwrt - main.c: Stay awake for testing print CRC as unsigned
author Matt Johnston <matt@ucc.asn.au>
date Wed, 06 Jun 2012 23:05:35 +0800
parents 7ac6b8846eea
children d3e5934fe55c
line wrap: on
line diff
--- a/main.c	Wed Jun 06 22:32:49 2012 +0800
+++ b/main.c	Wed Jun 06 23:05:35 2012 +0800
@@ -36,7 +36,7 @@
 
 // limited to uint16_t for now
 #define COMMS_WAKE 3600
-#define WAKE_SECS 30
+#define WAKE_SECS 250 // XXX testing
 
 #define BAUD 19200
 #define UBRR ((F_CPU)/8/(BAUD)-1)
@@ -249,7 +249,7 @@
         fputc('\n', crc_stdout);
     }
     fprintf_P(crc_stdout, PSTR("END\n"));
-    fprintf_P(stdout, PSTR("CRC=%d\n"), crc_out);
+    fprintf_P(stdout, PSTR("CRC=%hu\n"), crc_out);
 }
 
 static void
@@ -745,6 +745,8 @@
 
     sei();
 
+    need_comms = 1;
+
 #if 0
     for (;;)
     {