aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 265b8af..86663b5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -56,6 +56,9 @@ main(void)
void
tud_mount_cb(void)
{
+#ifndef SPLIT_ROLE
+ split_role = MASTER;
+#endif
led_rgb = WS2812_U32RGB(100, 0, 100);
led_mode = LED_ON;
led_reset = true;
@@ -73,6 +76,9 @@ tud_umount_cb(void)
void
tud_suspend_cb(bool remote_wakeup_en)
{
+#ifndef SPLIT_ROLE
+ split_role = SLAVE;
+#endif
led_rgb = WS2812_U32RGB(100, 100, 100);
led_mode = LED_ON;
led_reset = true;