Преглед на файлове

Comment about receive_msg().

Stéphane Raimbault преди 17 години
родител
ревизия
e0ea0303cd
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  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)