comparison simple_ds18b20.c @ 319:9621436cfa07

Add eeprom stuff
author Matt Johnston <matt@ucc.asn.au>
date Sat, 19 May 2012 23:59:12 +0800
parents 31199b2941f6
children 878be5e353a0
comparison
equal deleted inserted replaced
318:31199b2941f6 319:9621436cfa07
161 161
162 uint8_t 162 uint8_t
163 simple_ds18b20_read_all() 163 simple_ds18b20_read_all()
164 { 164 {
165 uint8_t id[OW_ROMCODE_SIZE]; 165 uint8_t id[OW_ROMCODE_SIZE];
166 uint8_t sp[DS18X20_SP_SIZE];
167 for( uint8_t diff = OW_SEARCH_FIRST; diff != OW_LAST_DEVICE; ) 166 for( uint8_t diff = OW_SEARCH_FIRST; diff != OW_LAST_DEVICE; )
168 { 167 {
169 diff = ow_rom_search( diff, &id[0] ); 168 diff = ow_rom_search( diff, &id[0] );
170 169
171 if( diff == OW_PRESENCE_ERR ) { 170 if( diff == OW_PRESENCE_ERR ) {