From 48fcf39d535a43e267883111d24a7d46111c6509 Mon Sep 17 00:00:00 2001 From: Roland Jax Date: Mon, 17 Nov 2014 21:06:48 +0100 Subject: [PATCH] rudimental version of 'scan result' added. --- src/ebusd/baseloop.cpp | 6 ++++-- src/lib/ebus/commands.cpp | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ebusd/baseloop.cpp b/src/ebusd/baseloop.cpp index 962c7193..4b66a047 100644 --- a/src/ebusd/baseloop.cpp +++ b/src/ebusd/baseloop.cpp @@ -305,8 +305,10 @@ std::string BaseLoop::decodeMessage(const std::string& data) } if (strcasecmp(cmd[1].c_str(), "RESULT") == 0) { - //~ m_ebusloop->scan(true); - result << "TODO show result"; + // TODO format scan results + for (size_t i = 0; i < m_commands->sizeScanDB(); i++) + result << m_commands->getScanData(i) << std::endl; + break; } diff --git a/src/lib/ebus/commands.cpp b/src/lib/ebus/commands.cpp index ed113de3..6fdb34d0 100644 --- a/src/lib/ebus/commands.cpp +++ b/src/lib/ebus/commands.cpp @@ -251,7 +251,6 @@ void Commands::storeScanData(const std::string& data) m_scanDB.push_back(data); } - void Commands::printCommand(const cmd_t& command) const { if (command.size() == 0)