소스 검색

Add missing return in modbus_flush

Stéphane Raimbault 15 년 전
부모
커밋
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 */