Browse Source

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.
mission-4.1.18
Lucas De Marchi 8 years ago
parent
commit
3ff965a0c0
  1. 6
      libraries/DataFlash/examples/DataFlash_AllTypes/DataFlash_AllTypes.cpp

6
libraries/DataFlash/examples/DataFlash_AllTypes/DataFlash_AllTypes.cpp

@ -202,10 +202,8 @@ void DataFlashTest_AllTypes::setup(void) @@ -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…
Cancel
Save