From d5ed65e7e193d3110a3caeb243730073d8763204 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sun, 1 Nov 2020 06:39:12 -0800 Subject: [PATCH] Correct macro name in comments The `HOLDING_REGISTERS` macro was incorrectly referred to as "HOLD_REGISTERS". --- src/ModbusClient.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ModbusClient.h b/src/ModbusClient.h index 1c881b1..72ee159 100644 --- a/src/ModbusClient.h +++ b/src/ModbusClient.h @@ -129,7 +129,7 @@ class ModbusClient { * to send request on the wire. * * @param id (slave) id of target, defaults to 0x00 if not specified - * @param type type of write to perform, either COILS or HOLD_REGISTERS + * @param type type of write to perform, either COILS or HOLDING_REGISTERS * @param address start address to use for operation * @param nb number of values to write * @@ -162,7 +162,7 @@ class ModbusClient { * * @param id (slave) id of target, defaults to 0x00 if not specified * @param type type of read to perform, either COILS, DISCRETE_INPUTS, - * HOLD_REGISTERS, or INPUT_REGISTERS + * HOLDING_REGISTERS, or INPUT_REGISTERS * @param address start address to use for operation * @param nb number of values to read *