stephane / modbusino

Small Modbus slave, RTU (serial) for Arduino

Home Page:http://libmodbus.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Constructor error

kimiyang123 opened this issue · comments

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;
    }
}