Эх сурвалжийг харах

Add missing return in modbus_flush

Stéphane Raimbault 14 жил өмнө
parent
commit
7eac79a79b
1 өөрчлөгдсөн 2 нэмэгдсэн , 0 устгасан
  1. 2 0
      src/modbus.c

+ 2 - 0
src/modbus.c

@@ -232,6 +232,8 @@ int modbus_flush(modbus_param_t *mb_param)
                         }
                 } while (rc > 0);
         }
+
+        return rc;
 }
 
 /* Computes the length of the expected response */