kopia lustrzana https://github.com/weetmuts/wmbusmeters
Start eventloop after first detect of stdin device.
rodzic
3b86b00b96
commit
1f4083e6d0
|
@ -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");
|
||||
|
|
7
test.sh
7
test.sh
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue