diff --git a/coincells.cpp b/coincells.cpp index f89d8f8d9ae9b661ac702b2a48e22e4da50869a4..6a666322e01ba669d497e90a6acd8c386cfed643 100644 --- a/coincells.cpp +++ b/coincells.cpp @@ -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; diff --git a/heater.cpp b/heater.cpp index cf9382a2603622b55217974e54a5a792a034895a..77319b02e69cb6a4b3686a6a69cefc886a4951d2 100644 --- a/heater.cpp +++ b/heater.cpp @@ -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); diff --git a/test.cpp b/test.cpp index 601834151467b77c5064e7603c20ddc79c1bb147..51fd2036a166f931e9e87c9033bd93aeba85bc24 100644 --- a/test.cpp +++ b/test.cpp @@ -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;