From 243564a2752e39ecdc85c21f2531c2fc509f1822 Mon Sep 17 00:00:00 2001 From: Stefan Wahren Date: Sun, 22 Apr 2012 16:12:01 +0200 Subject: [PATCH] Fixed return value for packing error frame --- mbus/mbus-protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mbus/mbus-protocol.c b/mbus/mbus-protocol.c index 6a6b7a6..0b996cb 100644 --- a/mbus/mbus-protocol.c +++ b/mbus/mbus-protocol.c @@ -2639,7 +2639,7 @@ mbus_frame_internal_pack(mbus_frame *frame, mbus_frame_data *frame_data) frame->data[frame->data_size++] = (char) frame_data->error; - return -2; + break; case MBUS_DATA_TYPE_FIXED: