Skip to content

Commit 7a02693

Browse files
committed
Return value for readEEPROM
uint16_t TMP117::readEEPROM (uint8_t eeprom_nr) doesn't have an explicity return in the event that the EEPROM is busy. This makes newer compilers throw errors. 0 seems to be the most innocent return value, but maybe the max uint16 might be better?
1 parent 49dd15d commit 7a02693

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/TMP117.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ uint16_t TMP117::readEEPROM (uint8_t eeprom_nr) {
286286
}
287287
else {
288288
Serial.println("EEPROM is busy");
289+
return 0;
289290
}
290291
}
291292

0 commit comments

Comments
 (0)