diff main.c @ 89:51d889ad39a3

main.c : add a delay before turning on uart server : try and improve timeouts, get rid of lightblue, don't use https, use python logging module
author Matt Johnston <matt@ucc.asn.au>
date Sun, 15 Jul 2012 21:49:59 +0800
parents 81b8c84344c4
children a1c1c2d475b0
line wrap: on
line diff
--- a/main.c	Thu Jul 12 23:47:29 2012 +0800
+++ b/main.c	Sun Jul 15 21:49:59 2012 +0800
@@ -238,7 +238,7 @@
 static void 
 uart_off()
 {
-    // Turn of interrupts and disable tx/rx
+    // Turn off interrupts and disable tx/rx
     UCSR0B = 0;
     uart_enabled = 0;
 
@@ -679,6 +679,8 @@
         last_comms_clock = clock_epoch;
     }
     set_aux_power(1);
+    // avoid receiving rubbish, perhaps
+    _delay_ms(50);
     uart_on();
     
     // write sd card here? same 3.3v regulator...