rudimental version of 'scan result' added.

This commit is contained in:
Roland Jax
2014-11-17 21:06:48 +01:00
parent 46e8aa7a77
commit 48fcf39d53
2 changed files with 4 additions and 3 deletions
+4 -2
View File
@@ -305,8 +305,10 @@ std::string BaseLoop::decodeMessage(const std::string& data)
} }
if (strcasecmp(cmd[1].c_str(), "RESULT") == 0) { if (strcasecmp(cmd[1].c_str(), "RESULT") == 0) {
//~ m_ebusloop->scan(true); // TODO format scan results
result << "TODO show result"; for (size_t i = 0; i < m_commands->sizeScanDB(); i++)
result << m_commands->getScanData(i) << std::endl;
break; break;
} }
-1
View File
@@ -251,7 +251,6 @@ void Commands::storeScanData(const std::string& data)
m_scanDB.push_back(data); m_scanDB.push_back(data);
} }
void Commands::printCommand(const cmd_t& command) const void Commands::printCommand(const cmd_t& command) const
{ {
if (command.size() == 0) if (command.size() == 0)