Skip to content

Commit 62c5631

Browse files
author
Coriander Violet Pines
committed
Remove i2c addr left shift from MCP23x17 driver
1 parent 8636720 commit 62c5631

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/dev/mcp23x17.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ class Mcp23017Transport
108108

109109
void Init(const Config& config)
110110
{
111-
i2c_address_ = config.i2c_address << 1;
111+
i2c_address_ = config.i2c_address;
112112
i2c_.Init(config.i2c_config);
113113
};
114114

0 commit comments

Comments
 (0)