Commit e0ea0303cd0145ab66a3a7baed4430dadbb7400b
1 parent
58426bc8
Comment about receive_msg().
Showing
1 changed file
with
3 additions
and
3 deletions
modbus/modbus.c
| ... | ... | @@ -461,9 +461,9 @@ static int compute_query_length_data(modbus_param_t *mb_param, uint8_t *msg) |
| 461 | 461 | |
| 462 | 462 | msg_length_computed must be set to MSG_LENGTH_COMPUTED if undefined |
| 463 | 463 | |
| 464 | - Returns: | |
| 465 | - - 0: OK, <0: error | |
| 466 | - - msg_length: number of characters received. */ | |
| 464 | + Returns a negative number if an error occured. | |
| 465 | + The variable msg_length is assigned to the number of characters | |
| 466 | + received. */ | |
| 467 | 467 | int receive_msg(modbus_param_t *mb_param, |
| 468 | 468 | int msg_length_computed, |
| 469 | 469 | uint8_t *msg, int *msg_length) | ... | ... |