From 0e5b5b46a8167344583a5fa1efaf29974b65f32b Mon Sep 17 00:00:00 2001 From: strongly-typed Date: Mon, 9 May 2016 01:10:36 +0200 Subject: [PATCH] Fix regression with XML output. Copy-paste error from 9edcc44. Spotted with `cd test && ./generate-xml.sh test-frames` --- test-frames/manual_frame2.xml 2016-05-09 00:19:44.000000000 +0200 +++ test-frames/manual_frame2.xml.new 2016-05-09 01:09:09.000000000 +0200 @@ -17,7 +17,7 @@ Actual value reserved but historic - 135 + 1 --- 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 b4fa8c5..546541f 100755 --- a/mbus/mbus-protocol.c +++ b/mbus/mbus-protocol.c @@ -4027,7 +4027,7 @@ mbus_data_fixed_xml(mbus_data_fixed *data) len += snprintf(&buff[len], buff_size - len, " %s\n", str_encoded); if ((data->status & MBUS_DATA_FIXED_STATUS_FORMAT_MASK) == MBUS_DATA_FIXED_STATUS_FORMAT_BCD) { - len += snprintf(&buff[len], buff_size - len, " %lld\n", mbus_data_bcd_decode(data->cnt1_val, 4)); + len += snprintf(&buff[len], buff_size - len, " %lld\n", mbus_data_bcd_decode(data->cnt2_val, 4)); } else {