1-Wire® library for mbed. Complete 1-Wire library that supports our silicon masters along with a bit-bang master on the MAX32600MBED platform with one common interface for mbed. Slave support has also been included and more slaves will be added as time permits.
Dependents: MAXREFDES131_Qt_Demo MAX32630FTHR_iButton_uSD_Logger MAX32630FTHR_DS18B20_uSD_Logger MAXREFDES130_131_Demo ... more
Superseded by MaximInterface.
Diff: RomIterator.cpp
- Revision:
- 81:e2a3ad98874e
- Parent:
- 78:0cbbac7f2016
- Child:
- 85:98d209752a52
--- a/RomIterator.cpp Thu Jun 02 21:56:16 2016 +0000 +++ b/RomIterator.cpp Fri Jun 03 22:15:59 2016 +0000 @@ -74,7 +74,9 @@ OneWireMaster::CmdResult MultidropRomIterator::selectDevice(const RomId & romId) { OneWireMaster::CmdResult result; - if (romId == lastRom) + + + if ((romId == lastRom) && (romId.familyCode() != 0x10)) { result = master().OWResume(); } @@ -83,5 +85,6 @@ result = master().OWMatchRom(romId); lastRom = romId; } + return result; }