Parcourir la source

Add missing return in modbus_flush

Stéphane Raimbault il y a 15 ans
Parent
commit
7eac79a79b
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  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 */