Skip to content

Commit 52dfcac

Browse files
hakehuanghenrikbrixandersen
authored andcommitted
app: led: add conditional compilation of LED identification code
Add conditional compilation of LED identification code. Signed-off-by: hake Huang <hake.huang@nxp.com>
1 parent 24a6d34 commit 52dfcac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/src/led.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ int cannectivity_led_event(const struct device *dev, uint16_t ch, enum gs_usb_ev
431431

432432
lctx->activity[idx] = sys_timepoint_calc(K_MSEC(LED_TICK_MS * LED_TICKS_ACTIVITY));
433433
break;
434+
#if defined(CONFIG_USB_DEVICE_GS_USB_IDENTIFICATION) || defined(CONFIG_USBD_GS_USB_IDENTIFICATION)
434435
case GS_USB_EVENT_CHANNEL_IDENTIFY_ON:
435436
LOG_DBG("identify channel %u on", ch);
436437
led_event = LED_EVENT_CHANNEL_IDENTIFY_ON;
@@ -439,6 +440,7 @@ int cannectivity_led_event(const struct device *dev, uint16_t ch, enum gs_usb_ev
439440
LOG_DBG("identify channel %u off", ch);
440441
led_event = LED_EVENT_CHANNEL_IDENTIFY_OFF;
441442
break;
443+
#endif
442444
default:
443445
/* Unsupported event */
444446
goto skipped;

0 commit comments

Comments
 (0)