Skip to content

Commit e5c6538

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 <[email protected]>
1 parent f6d9a77 commit e5c6538

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
@@ -432,6 +432,7 @@ int cannectivity_led_event(const struct device *dev, uint16_t ch, enum gs_usb_ev
432432

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

0 commit comments

Comments
 (0)