AP_Notify: Fix bad loop count on notify LED's

This commit is contained in:
Michael du Breuil 2018-07-22 12:45:39 -07:00 committed by Randy Mackay
parent d86dbee18b
commit c5a69d8ec2

View File

@ -196,10 +196,9 @@ void AP_Notify::add_backends(void)
return;
}
for (uint32_t i = 1; i < 32; i = i << 1) {
for (uint32_t i = 1; i < Notify_LED_MAX; i = i << 1) {
switch(_led_type & i) {
case Notify_LED_None:
case Notify_LED_MAX:
break;
case Notify_LED_Board:
// select the most appropriate built in LED driver type