From 1c5ede04e9b51b7623dc766881ef2ad9618985d9 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 5 Nov 2021 19:29:41 +0100 Subject: [PATCH] fix for injecting multiple messages --- src/ebusd/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ebusd/main.cpp b/src/ebusd/main.cpp index a708e133..9b6b3172 100644 --- a/src/ebusd/main.cpp +++ b/src/ebusd/main.cpp @@ -1388,10 +1388,10 @@ int main(int argc, char* argv[]) { s_mainLoop = new MainLoop(opt, device, s_messageMap); if (opt.injectMessages) { BusHandler* busHandler = s_mainLoop->getBusHandler(); - MasterSymbolString master; - SlaveSymbolString slave; while (arg_index < argc) { // add each passed message + MasterSymbolString master; + SlaveSymbolString slave; if (!parseMessage(argv[arg_index++], false, &master, &slave)) { continue; }