DataFlash: remove infinite loop from loop() method

Remove the while() loop inside loop() method so the new signal handlers
correctly notify the mainloop to exit.

This makes SIGTERM/SIGINT work again.
This commit is contained in:
Lucas De Marchi 2016-11-02 15:34:00 -02:00
parent 3620529c22
commit 3ff965a0c0

View File

@ -202,10 +202,8 @@ void DataFlashTest_AllTypes::setup(void)
void DataFlashTest_AllTypes::loop(void)
{
while (true) {
hal.console->printf("all done\n");
hal.scheduler->delay(1000);
}
hal.console->printf("all done\n");
hal.scheduler->delay(1000);
}
static DataFlashTest_AllTypes dataflashtest;