stephane / modbusino

Small Modbus slave, RTU (serial) for Arduino
http://libmodbus.org
ISC License
143 stars 94 forks source link

Constructor error #16

Open kimiyang123 opened 4 years ago

kimiyang123 commented 4 years ago

I found a logical AND error in the constructor of the Modbusino.cpp file and caused a compilation warning.

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