Commit 78587bdf680c81df32982dbdb4ee8e85145997d6
1 parent
3e4cce54
Minor change to documentation
Showing
1 changed file
with
3 additions
and
3 deletions
doc/modbus_write_and_read_registers.txt
| @@ -16,9 +16,9 @@ DESCRIPTION | @@ -16,9 +16,9 @@ DESCRIPTION | ||
| 16 | ----------- | 16 | ----------- |
| 17 | The _modbus_write_and_read_registers()_ function shall write the content of the | 17 | The _modbus_write_and_read_registers()_ function shall write the content of the |
| 18 | 'write_nb' holding registers from the array 'src' to the address 'write_addr' of | 18 | 'write_nb' holding registers from the array 'src' to the address 'write_addr' of |
| 19 | -the remote device then shall read the content of the 'read_nb' holding registers to | ||
| 20 | -the address 'read_addr' of the remote device. The result of reading is stored in | ||
| 21 | -'dest' array as word values (16 bits). | 19 | +the remote device then shall read the content of the 'read_nb' holding registers |
| 20 | +to the address 'read_addr' of the remote device. The result of reading is stored | ||
| 21 | +in 'dest' array as word values (16 bits). | ||
| 22 | 22 | ||
| 23 | You must take care to allocate enough memory to store the results in 'dest' | 23 | You must take care to allocate enough memory to store the results in 'dest' |
| 24 | (at least 'nb' * sizeof(uint16_t)). | 24 | (at least 'nb' * sizeof(uint16_t)). |