Mario Bambagini / ssWi

Dependents:   rover_car rover_pc supervisor watering_unit ... more

Files at this revision

API Documentation at this revision

Comitter:
mariob
Date:
Sun Apr 19 17:59:59 2020 +0000
Parent:
22:8dc7a24ff429
Child:
24:80345e511574
Commit message:
fix

Changed in this revision

ssWi.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/ssWi.cpp	Sun Apr 19 17:26:13 2020 +0000
+++ b/ssWi.cpp	Sun Apr 19 17:59:59 2020 +0000
@@ -151,7 +151,7 @@
         }
         offset = 0;
 
-        while((index + sizeof(PortID) + sizeof(PortValue)) < n) {
+        while((index + sizeof(PortID) + sizeof(PortValue)) <= n) {
             PortID port = buffer[index++];
             PortValue value = 0;
             memcpy(&value, &buffer[index], sizeof(PortValue));