Browse Source

AP_DataFlash: example uses millis/micros/panic functions

master
Caio Marcelo de Oliveira Filho 9 years ago committed by Randy Mackay
parent
commit
578b31e7f8
  1. 4
      libraries/DataFlash/examples/DataFlash_test/DataFlash_test.cpp

4
libraries/DataFlash/examples/DataFlash_test/DataFlash_test.cpp

@ -67,7 +67,7 @@ void DataFlashTest::setup(void) @@ -67,7 +67,7 @@ void DataFlashTest::setup(void)
uint16_t i;
for (i = 0; i < NUM_PACKETS; i++) {
uint32_t start = hal.scheduler->micros();
uint32_t start = AP_HAL::micros();
// note that we use g++ style initialisers to make larger
// structures easier to follow
struct log_Test pkt = {
@ -80,7 +80,7 @@ void DataFlashTest::setup(void) @@ -80,7 +80,7 @@ void DataFlashTest::setup(void)
l2 : (int32_t)(i * 16268)
};
dataflash.WriteBlock(&pkt, sizeof(pkt));
total_micros += hal.scheduler->micros() - start;
total_micros += AP_HAL::micros() - start;
hal.scheduler->delay(20);
}

Loading…
Cancel
Save