Mercurial > templog
changeset 134:405785632c78
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 | 190ac4e5a2bf |
children | 10d35b4370ef 2b112f9ab440 |
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) {