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:
parent
3620529c22
commit
3ff965a0c0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user