Skip to content

Commit befe931

Browse files
committed
Use unsigned types for comparison
1 parent c6e987d commit befe931

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/PortentaH7Logger/PortentaH7Logger.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void performUpdate() {
8181
UFile lastUpdateFile = usbRoot.createFile("diff.txt", FileMode::READ); // Create or open the last update file
8282

8383
backingUP = true;
84-
int lastUpdateBytes = lastUpdateFile.readAsString().toInt(); // Read the last update size from the file
84+
unsigned lastUpdateBytes = lastUpdateFile.readAsString().toInt(); // Read the last update size from the file
8585

8686
Serial.print("Last update bytes: "); Serial.println(lastUpdateBytes);
8787

0 commit comments

Comments
 (0)