From a6fe6024c1921d7fa1faa71aab8f6e4b03416962 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Thu, 13 Apr 2017 13:34:09 +0200 Subject: [PATCH] StorageManager: example fix travis warning missing function declaration implicit cast some style fix --- .../StorageManager/examples/StorageTest/StorageTest.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libraries/StorageManager/examples/StorageTest/StorageTest.cpp b/libraries/StorageManager/examples/StorageTest/StorageTest.cpp index 5332cf0b85..f3b6c74412 100644 --- a/libraries/StorageManager/examples/StorageTest/StorageTest.cpp +++ b/libraries/StorageManager/examples/StorageTest/StorageTest.cpp @@ -5,6 +5,9 @@ #include #include +void setup(); +void loop(); + const AP_HAL::HAL& hal = AP_HAL::get_HAL(); #define DO_INITIALISATION 1 @@ -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