Start eventloop after first detect of stdin device.

pull/186/head
Fredrik Öhrström 2020-11-11 21:44:50 +01:00
rodzic 3b86b00b96
commit 1f4083e6d0
2 zmienionych plików z 9 dodań i 2 usunięć

Wyświetl plik

@ -1120,14 +1120,14 @@ bool start(Configuration *config)
}
);
serial_manager_->startEventLoop();
// Detect and initialize any devices.
// Future changes are triggered through this callback.
printed_warning_ = true;
detect_and_configure_wmbus_devices(config);
serial_manager_->startEventLoop();
if (wmbus_devices_.size() == 0)
{
notice("No wmbus device detected, waiting for a device to be plugged in.\n");

Wyświetl plik

@ -99,4 +99,11 @@ then
if [ "$?" != "0" ]; then RC="1"; fi
fi
if [ "$RC" = "0" ]
then
echo "All tests ok!"
else
echo "Some tests failed!"
fi
exit $RC