changeset 433:411ff85e16e3

use delay_ms not timer tick - more robust
author Matt Johnston <matt@ucc.asn.au>
date Sun, 14 Oct 2012 21:52:09 +0800
parents b90e9c695cfd
children bde6cd6cbdc4 c95737913174
files main.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/main.c	Sun Oct 14 21:52:00 2012 +0800
+++ b/main.c	Sun Oct 14 21:52:09 2012 +0800
@@ -969,9 +969,7 @@
     }
 
     simple_ds18b20_start_meas(NULL);
-    // sleep rather than using a long delay
-    idle_sleep();
-    //_delay_ms(DS18B20_TCONV_12BIT);
+    _delay_ms(DS18B20_TCONV_12BIT);
 
     if (n_measurements == max_measurements)
     {