comparison simple_ds18b20.c @ 13:4838bfcb3504

Add eeprom stuff
author Matt Johnston <matt@ucc.asn.au>
date Sat, 19 May 2012 23:59:12 +0800
parents 3c27bfbd7f3a
children 878be5e353a0
comparison
equal deleted inserted replaced
12:3c27bfbd7f3a 13:4838bfcb3504
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 ) {