From 01ba9771ee6ea9e49959fa1058d5b7d794997377 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Mon, 4 Oct 2010 12:11:12 +0200 Subject: [PATCH] Fixed return value in modbus_flush() --- src/modbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modbus.c b/src/modbus.c index a9fbce6..793acc6 100644 --- a/src/modbus.c +++ b/src/modbus.c @@ -100,7 +100,7 @@ void _error_print(modbus_t *ctx, const char *context) int modbus_flush(modbus_t *ctx) { - ctx->backend->flush(ctx); + return ctx->backend->flush(ctx); } /* Computes the length of the expected response */ -- libgit2 0.21.4