Implementation of 1-Wire with added Alarm Search Functionality

Dependents:   Max32630_One_Wire_Interface

Revision:
120:200109b73e3c
Parent:
112:82eb520a644b
--- a/Masters/DS2480B/DS2480B.cpp	Mon Aug 22 21:48:41 2016 +0000
+++ b/Masters/DS2480B/DS2480B.cpp	Tue Sep 06 09:25:52 2016 -0500
@@ -740,7 +740,7 @@
             serial.putc(outbuf[idx++]);
         }
 
-    } while ((idx < outlen) && (timer.read_us() < timeout));
+    } while ((idx < outlen) && (static_cast<unsigned int>(timer.read_us()) < timeout));
     
     if (idx == outlen)
     {
@@ -768,7 +768,7 @@
         {
             inbuf[num_bytes_read++] = serial.getc();
         }
-    } while ((num_bytes_read < inlen) && (timer.read_us() < timeout));
+    } while ((num_bytes_read < inlen) && (static_cast<unsigned int>(timer.read_us()) < timeout));
     timer.stop();
 
     if (num_bytes_read == inlen)