Browse Source

StorageManager: example fix travis warning

missing function declaration
implicit cast
some style fix
mission-4.1.18
Pierre Kancir 8 years ago committed by Francisco Ferreira
parent
commit
a6fe6024c1
  1. 7
      libraries/StorageManager/examples/StorageTest/StorageTest.cpp

7
libraries/StorageManager/examples/StorageTest/StorageTest.cpp

@ -5,6 +5,9 @@ @@ -5,6 +5,9 @@
#include <AP_HAL/AP_HAL.h>
#include <StorageManager/StorageManager.h>
void setup();
void loop();
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
#define DO_INITIALISATION 1
@ -43,10 +46,10 @@ void setup(void) @@ -43,10 +46,10 @@ void setup(void)
{
hal.console->printf("StorageTest startup...\n");
#if DO_INITIALISATION
for (uint8_t type=0; type<4; type++) {
for (uint8_t type = 0; type < 4; type++) {
const StorageAccess &storage = all_storage[type];
hal.console->printf("Init type %u\n", (unsigned)type);
for (uint16_t i=0; i<storage.size(); i++) {
for (uint16_t i = 0; i < storage.size(); i++) {
storage.write_byte(i, pvalue(i));
}
}

Loading…
Cancel
Save