Skip to content

Constructor error #16

Description

@kimiyang123

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions