Skip to content

Commit 59d4ade

Browse files
authored
Update porthub.cpp
1 parent a7c1106 commit 59d4ade

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/Unit/PbHUB/porthub.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ uint8_t PortHub::hub_d_read_value_B(uint8_t reg) {
4646
Wire.write(reg | 0x05);
4747
Wire.endTransmission();
4848

49-
uint8_t RegValue;
49+
uint8_t RegValue = 0;
5050

5151
Wire.requestFrom(_iic_addr, 1);
5252
while (Wire.available()) {

0 commit comments

Comments
 (0)