From e7f2f9a5e00ae52d13e520f9a1cdfffeeae2a897 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 3 Nov 2017 20:38:31 +0100 Subject: [PATCH] [firmware] wwam_led: use 0/1 instead of 1/2 most (all) other code modules have already moved over to consistently using a 0-based index. --- firmware/libboard/qmod/source/wwan_led.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/firmware/libboard/qmod/source/wwan_led.c b/firmware/libboard/qmod/source/wwan_led.c index 5657cdb0..d95b31cf 100644 --- a/firmware/libboard/qmod/source/wwan_led.c +++ b/firmware/libboard/qmod/source/wwan_led.c @@ -14,9 +14,9 @@ static const Pin pin_wwan1 = PIN_WWAN1; static void wwan1_irqhandler(const Pin *pPin) { - int active = wwan_led_active(1); + int active = wwan_led_active(0); - TRACE_INFO("WWAN1 LED %u\r\n", active); + TRACE_INFO("0: WWAN LED %u\r\n", active); /* TODO: notify host via USB */ } @@ -27,8 +27,8 @@ static const Pin pin_wwan2 = PIN_WWAN2; static void wwan2_irqhandler(const Pin *pPin) { - int active = wwan_led_active(2); - TRACE_INFO("WWAN2 LED %u\r\n", active); + int active = wwan_led_active(1); + TRACE_INFO("1: WWAN LED %u\r\n", active); /* TODO: notify host via USB */ } @@ -42,12 +42,12 @@ int wwan_led_active(int wwan) switch (wwan) { #ifdef PIN_WWAN1 - case 1: + case 0: pin = &pin_wwan1; break; #endif #ifdef PIN_WWAN2 - case 2: + case 1: pin = &pin_wwan2; break; #endif