Explorar o código

Add missing return in modbus_flush

Stéphane Raimbault %!s(int64=15) %!d(string=hai) anos
pai
achega
7eac79a79b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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 */