Implementation of 1-Wire with added Alarm Search Functionality

Dependents:   Max32630_One_Wire_Interface

Revision:
89:3a0e12c9b898
Parent:
88:cac71903b1cd
Child:
90:c233d1c265ff
diff -r cac71903b1cd -r 3a0e12c9b898 Slaves/RomIterator.cpp
--- a/Slaves/RomIterator.cpp	Wed Jun 15 15:11:48 2016 -0500
+++ b/Slaves/RomIterator.cpp	Thu Jun 16 10:45:24 2016 -0500
@@ -75,3 +75,20 @@
 {
     return master().OWMatchRom(romId);
 }
+
+OneWireMaster::CmdResult MultidropRomIteratorWithResume::selectDevice(const RomId & romId)
+{
+    OneWireMaster::CmdResult result;
+    
+    if (romId == lastRom)
+    {
+        result = master().OWResume();
+    }
+    else
+    {
+        result = master().OWMatchRom(romId);
+        lastRom = romId;
+    }
+    
+    return result;
+}