Implementation of 1-Wire with added Alarm Search Functionality
Dependents: Max32630_One_Wire_Interface
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); }