Browse Source

DataFlash: fix example

master
Gustavo Jose de Sousa 9 years ago committed by Randy Mackay
parent
commit
3035fb282d
  1. 3
      libraries/DataFlash/examples/DataFlash_test/DataFlash_test.cpp

3
libraries/DataFlash/examples/DataFlash_test/DataFlash_test.cpp

@ -57,7 +57,8 @@ void DataFlashTest::setup(void) @@ -57,7 +57,8 @@ void DataFlashTest::setup(void)
// We start to write some info (sequentialy) starting from page 1
// This is similar to what we will do...
log_num = dataflash.StartNewLog();
dataflash.StartNewLog();
log_num = dataflash.find_last_log();
hal.console->printf("Using log number %u\n", log_num);
hal.console->println("After testing perform erase before using DataFlash for logging!");
hal.console->println("");

Loading…
Cancel
Save