word wrap long input and fix compiler warnings

This commit is contained in:
Thomas Göttgens
2022-10-06 18:40:31 +02:00
parent d44cce2928
commit 1d09beb8a7
3 changed files with 3 additions and 2 deletions

View File

@@ -17,7 +17,7 @@ uint8_t read_from_14004(uint8_t reg, uint8_t *data, uint8_t length)
Wire.write(reg);
Wire.endTransmission(); // stop transmitting
delay(20);
Wire.requestFrom(CARDKB_ADDR, length);
Wire.requestFrom(CARDKB_ADDR, (int)length);
int i = 0;
while ( Wire.available() ) // slave may send less than requested
{