Skip to content

Commit

Permalink
Fixed missing ampersand in test of slave value (stephane#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
oakwhiz committed Nov 24, 2020
1 parent b907a47 commit ebe77cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modbusino.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ static uint16_t crc16(uint8_t *req, uint8_t req_length)

ModbusinoSlave::ModbusinoSlave(uint8_t slave)
{
if (slave >= 0 & slave <= 247) {
if (slave >= 0 && slave <= 247) {
_slave = slave;
}
}
Expand Down

0 comments on commit ebe77cb

Please sign in to comment.