Browse Source

Add missing return in modbus_flush

Stéphane Raimbault 15 năm trước cách đây
mục cha
commit
7eac79a79b
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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 */