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: Slaves/RomIterator.cpp
- Revision:
- 88:cac71903b1cd
- Parent:
- 87:20e8f12f4f11
- Child:
- 89:3a0e12c9b898
--- a/Slaves/RomIterator.cpp Wed Jun 15 15:07:21 2016 -0500 +++ b/Slaves/RomIterator.cpp Wed Jun 15 15:11:48 2016 -0500 @@ -73,17 +73,5 @@ OneWireMaster::CmdResult MultidropRomIterator::selectDevice(const RomId & romId) { - OneWireMaster::CmdResult result; - - if ((romId == lastRom) && (romId.familyCode() != 0x10) && (romId.familyCode() != 0x3A)) - { - result = master().OWResume(); - } - else - { - result = master().OWMatchRom(romId); - lastRom = romId; - } - - return result; + return master().OWMatchRom(romId); }