Skip to content

Commit

Permalink
StorageManager: example fix travis warning
Browse files Browse the repository at this point in the history
missing function declaration
implicit cast
some style fix
  • Loading branch information
khancyr authored and OXINARF committed Apr 13, 2017
1 parent 90661c5 commit a6fe602
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions libraries/StorageManager/examples/StorageTest/StorageTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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));
}
}
Expand Down

0 comments on commit a6fe602

Please sign in to comment.