swap pin logic
@@ -397,11 +397,11 @@ impl PounderDevices {
{
devices
.mcp23017
- .set_direction(pin.into(), mcp230xx::Direction::Output)
+ .set_output_latch(pin.into(), level)
.map_err(|_| Error::I2c)?;
devices
.mcp23017
- .set_output_latch(pin.into(), level)
+ .set_direction(pin.into(), mcp230xx::Direction::Output)
.map_err(|_| Error::I2c)?;
}
