Browse Source

Comment about receive_msg().

Stéphane Raimbault 17 năm trước cách đây
mục cha
commit
e0ea0303cd
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      modbus/modbus.c

+ 3 - 3
modbus/modbus.c

@@ -461,9 +461,9 @@ static int compute_query_length_data(modbus_param_t *mb_param, uint8_t *msg)
 
    msg_length_computed must be set to MSG_LENGTH_COMPUTED if undefined
 
-   Returns:
-   - 0: OK, <0: error
-   - msg_length: number of characters received. */
+   Returns a negative number if an error occured.
+   The variable msg_length is assigned to the number of characters
+   received. */
 int receive_msg(modbus_param_t *mb_param,
                 int msg_length_computed,
                 uint8_t *msg, int *msg_length)