Skip to content

Commit 962c253

Browse files
authored
Fix compiler warning: ambiguitiy between uint16_t and uint8_t argument.
2 parents b3e801f + 8d87fce commit 962c253

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/Unit/RFID_RC522/MFRC522_I2C.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ byte MFRC522::PCD_ReadRegister(
7676
Wire.beginTransmission(_chipAddress);
7777
Wire.write(reg);
7878
Wire.endTransmission();
79-
80-
Wire.requestFrom(_chipAddress, 1);
79+
const uint8_t sz = 1;
80+
Wire.requestFrom(_chipAddress, sz);
8181
value = Wire.read();
8282
return value;
8383
} // End PCD_ReadRegister()

0 commit comments

Comments
 (0)