Browse Source

Bug in registers retrieval

v0.9.4
Guy Turcotte 3 years ago
parent
commit
9f1f58c17b
  1. 2
      src/drivers/mcp23017.cpp

2
src/drivers/mcp23017.cpp

@ -74,7 +74,7 @@ MCP23017::read_all_registers()
wire.write(0x00);
wire.end_transmission();
wire.request_from(mcp_address, (uint8_t) 22);
for (auto reg : registers) {
for (auto & reg : registers) {
reg = wire.read();
}
}

Loading…
Cancel
Save