one wire driver

Dependents:   09_PT1000 10_PT1000 11_PT1000

Revision:
4:c29e67d55f86
Parent:
3:e773b0d83471
Child:
5:d94037eb31ed
--- a/DS2482.cpp	Sat May 04 12:24:55 2013 +0000
+++ b/DS2482.cpp	Sat May 04 12:31:25 2013 +0000
@@ -1405,7 +1405,7 @@
 
     ds1820_float_result = ds18B20_temp.word * 0.0625;
     
-    // printf_P(PSTR("\nDS18B20 T-Kanal: %d = %2.2f "),device_index,ds1820_float_result);
+    pc.printf("\nDS18B20 T-Kanal: %d = %2.2f ",ow.device_table_index,ds1820_float_result);
     
     ow.device_table[ow.device_table_index].result = (uint16_t)(ds1820_float_result * 10);  
     ow.device_table[ow.device_table_index].result += 300;
@@ -1413,7 +1413,7 @@
     pc.printf("\nTemperatur Kanal: %d = %d ",ow.device_table_index,ow.device_table[ow.device_table_index].result);
   
     // Clear flag to mark that no measurement is in progress
-    ds1820_request_pending = FALSE;
+    ds1820_request_pending = false;
   
     // Flag für erfolgreiches Lesen setzen
     ow.device_table[ow.device_table_index].status &= 0xf0;