Skip to content
Snippets Groups Projects
Commit 8719717b authored by Carl Philipp Klemm's avatar Carl Philipp Klemm
Browse files

fix test crashing when no input is given, clean up output prints a bit

parent b5a9d364
Branches
No related tags found
No related merge requests found
......@@ -79,7 +79,7 @@ std::vector<std::unique_ptr<CoinCell>> asign_coincells(std::vector<uint16_t> cel
std::pair<int, channel_t> addr = multiplexers->getAddress(id);
Log(Log::INFO, false, false)<<" Mulitplexer "<<addr.first<<" channel "<<Multiplexers::chToString(addr.second)<<", ";
}
Log(Log::INFO, false)<<'\n';
Log(Log::INFO, false, false)<<'\n';
}
return coinCells;
......
......@@ -74,6 +74,7 @@ void Heaters::recoverDevice(int device)
{
coincellhell_reset_bus(&devices[device].device);
coincellhell_disconnect(&devices[device].device);
sleep(10);
ret = coincellhell_connect(&devices[device].device, devices[device].serial);
if(watchdogs)
coincellhell_enable_watchdog(&devices[device].device);
......
......@@ -100,7 +100,10 @@ int main(int argc, char** argv)
while(true)
{
std::string line = std::string(readline("> "));
const char* linePtr = readline("> ");
if(!linePtr)
continue;
std::string line = std::string(linePtr);
if(line.empty())
continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment