From 9ce4c573addf299fcddc61e87e7918ab053855f7 Mon Sep 17 00:00:00 2001 From: Bill Sideris Date: Wed, 2 Oct 2024 00:38:07 +0300 Subject: [PATCH] NEOPIXEL_INVERT_RG --- src/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main.c b/src/main.c index cd8255fb..ded4d3ce 100644 --- a/src/main.c +++ b/src/main.c @@ -164,12 +164,20 @@ static bool check_dfu_mode(void) { // Invoked when device is plugged and configured void tud_mount_cb(void) { + #ifdef NEOPIXEL_INVERT_RG + indicator_set(STATE_USB_UNPLUGGED); + #else indicator_set(STATE_USB_PLUGGED); + #endif } // Invoked when device is unplugged void tud_umount_cb(void) { + #ifdef NEOPIXEL_INVERT_RG + indicator_set(STATE_USB_PLUGGED); + #else indicator_set(STATE_USB_UNPLUGGED); + #endif } //--------------------------------------------------------------------+