From 73ff01dc68e3a2201e86cabc7a983ca28fadbfb2 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Tue, 21 Jul 2015 13:39:04 +0900 Subject: [PATCH] AP_Notify: replace unsigned int with uint8_t --- libraries/AP_Notify/AP_Notify.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_Notify/AP_Notify.cpp b/libraries/AP_Notify/AP_Notify.cpp index d5f50f63eb..43fd282612 100644 --- a/libraries/AP_Notify/AP_Notify.cpp +++ b/libraries/AP_Notify/AP_Notify.cpp @@ -74,7 +74,7 @@ void AP_Notify::init(bool enable_external_leds) AP_Notify::flags.external_leds = enable_external_leds; - for (unsigned int i = 0; i < CONFIG_NOTIFY_DEVICES_COUNT; i++) { + for (uint8_t i = 0; i < CONFIG_NOTIFY_DEVICES_COUNT; i++) { _devices[i]->init(); } } @@ -82,7 +82,7 @@ void AP_Notify::init(bool enable_external_leds) // main update function, called at 50Hz void AP_Notify::update(void) { - for (unsigned int i = 0; i < CONFIG_NOTIFY_DEVICES_COUNT; i++) { + for (uint8_t i = 0; i < CONFIG_NOTIFY_DEVICES_COUNT; i++) { _devices[i]->update(); } @@ -93,7 +93,7 @@ void AP_Notify::update(void) // handle a LED_CONTROL message void AP_Notify::handle_led_control(mavlink_message_t *msg) { - for (unsigned int i = 0; i < CONFIG_NOTIFY_DEVICES_COUNT; i++) { + for (uint8_t i = 0; i < CONFIG_NOTIFY_DEVICES_COUNT; i++) { _devices[i]->handle_led_control(msg); } }