From ebae419f82b75146f2b5b2deb494bf158df4ce24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20=C3=96hrstr=C3=B6m?= Date: Sat, 23 Apr 2022 16:28:54 +0200 Subject: [PATCH] New field printing works for partially converted sharky driver. --- README.md | 1 + src/cmdline.cc | 6 +++ src/config.h | 1 + src/driver_sharky.cc | 41 ++++++++-------- src/dvparser.cc | 9 +--- src/dvparser.h | 7 ++- src/fuzz.cc | 5 +- src/main.cc | 20 ++++++-- src/meters.cc | 78 ++++++++++++++++++++---------- src/meters.h | 8 ++- src/meters_common_implementation.h | 18 ++++--- src/printer.cc | 5 +- src/printer.h | 3 +- src/testinternals.cc | 14 +++--- src/wmbus.cc | 8 +-- src/wmbus.h | 8 ++- tests/test_list_envs.sh | 2 +- wmbusmeters.1 | 2 + 18 files changed, 146 insertions(+), 90 deletions(-) diff --git a/README.md b/README.md index e552202..1fe11aa 100644 --- a/README.md +++ b/README.md @@ -261,6 +261,7 @@ As {options} you can use: --nodeviceexit if no wmbus devices are found, then exit immediately --normal for normal logging --oneshot wait for an update from each meter, then quit + --ppjson pretty print the json --resetafter=