OneWire/OneWire.cpp
void OneWire::reset_search()
  {
  // reset the search state
  LastDiscrepancy = 0;
  LastDeviceFlag = FALSE;
  LastFamilyDiscrepancy = 0;
  for(int i = 7; ; i--)
    {
    ROM_NO[i] = 0;
    if ( i == 0) break;
    }
  }
//
// You need to use this function to start a search again from the beginning.
// You do not need to do it for the first search, though you could.
//

You need to use this function to start a search again from the beginning.
You do not need to do it for the first search, though you could.
You need to use this function to start a search again from the beginning . You do not need to do it for the first search though you could .
void OneWire::reset_search()
  {
  LastDiscrepancy = 0;
  LastDeviceFlag = FALSE;
  LastFamilyDiscrepancy = 0;
  for(int i = 7; ; i--)
    {
    ROM_NO[i] = 0;
    if ( i == 0) break;
    }
  }
void OneWire :: reset_search ( ) { LastDiscrepancy = 0 ; LastDeviceFlag = FALSE ; LastFamilyDiscrepancy = 0 ; for ( int i = 7 ; ; i -- ) { ROM_NO [ i ] = 0 ; if ( i == 0 ) break ; } }
You need to use this function to start a search again from the beginning.
You need to use this function to start a search again from the beginning .
// reset the search state
