Fix bug in register name definition (#2526)

This commit is contained in:
Martin 2021-10-15 09:27:56 +02:00 committed by GitHub
parent 7178f10bda
commit 6beb9e568a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@ ModbusRegisterType_ns = modbus_controller_ns.namespace("ModbusRegisterType")
ModbusRegisterType = ModbusRegisterType_ns.enum("ModbusRegisterType") ModbusRegisterType = ModbusRegisterType_ns.enum("ModbusRegisterType")
MODBUS_REGISTER_TYPE = { MODBUS_REGISTER_TYPE = {
"coil": ModbusRegisterType.COIL, "coil": ModbusRegisterType.COIL,
"discrete_input": ModbusRegisterType.DISCRETE, "discrete_input": ModbusRegisterType.DISCRETE_INPUT,
"holding": ModbusRegisterType.HOLDING, "holding": ModbusRegisterType.HOLDING,
"read": ModbusRegisterType.READ, "read": ModbusRegisterType.READ,
} }