mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-30 03:13:51 +00:00
Merge pull request #1505 from meshtastic/caveman99-patch-1
fix C++ warnings
This commit is contained in:
commit
61427528b6
@ -10,7 +10,7 @@ uint16_t getRegisterValue(uint8_t address, uint8_t reg, uint8_t length) {
|
|||||||
Wire.write(reg);
|
Wire.write(reg);
|
||||||
Wire.endTransmission();
|
Wire.endTransmission();
|
||||||
delay(20);
|
delay(20);
|
||||||
Wire.requestFrom((int)address, length);
|
Wire.requestFrom(address, length);
|
||||||
DEBUG_MSG("Wire.available() = %d\n", Wire.available());
|
DEBUG_MSG("Wire.available() = %d\n", Wire.available());
|
||||||
if (Wire.available() == 2) {
|
if (Wire.available() == 2) {
|
||||||
// Read MSB, then LSB
|
// Read MSB, then LSB
|
||||||
|
Loading…
Reference in New Issue
Block a user