[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.
diff --git a/firmware/libboard/qmod/source/wwan_led.c b/firmware/libboard/qmod/source/wwan_led.c
index 5657cdb..d95b31c 100644
--- a/firmware/libboard/qmod/source/wwan_led.c
+++ b/firmware/libboard/qmod/source/wwan_led.c
@@ -14,9 +14,9 @@
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 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 @@
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