Forráskód Böngészése

Add missing return in modbus_flush

Stéphane Raimbault 15 éve
szülő
commit
7eac79a79b
1 módosított fájl, 2 hozzáadás és 0 törlés
  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 */