Skip to content

Commit 6d323c5

Browse files
authored
Correct macro name in comments (arduino-libraries#37)
The `HOLDING_REGISTERS` macro was incorrectly referred to as "HOLD_REGISTERS".
1 parent 9fe0d77 commit 6d323c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ModbusClient.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class ModbusClient {
129129
* to send request on the wire.
130130
*
131131
* @param id (slave) id of target, defaults to 0x00 if not specified
132-
* @param type type of write to perform, either COILS or HOLD_REGISTERS
132+
* @param type type of write to perform, either COILS or HOLDING_REGISTERS
133133
* @param address start address to use for operation
134134
* @param nb number of values to write
135135
*
@@ -162,7 +162,7 @@ class ModbusClient {
162162
*
163163
* @param id (slave) id of target, defaults to 0x00 if not specified
164164
* @param type type of read to perform, either COILS, DISCRETE_INPUTS,
165-
* HOLD_REGISTERS, or INPUT_REGISTERS
165+
* HOLDING_REGISTERS, or INPUT_REGISTERS
166166
* @param address start address to use for operation
167167
* @param nb number of values to read
168168
*

0 commit comments

Comments
 (0)