From d10107df8c8025897b3d902175eff6ced3c23e89 Mon Sep 17 00:00:00 2001
From: Serge Bazanski <q3k@q3k.org>
Date: Mon, 26 Jun 2023 02:37:10 +0200
Subject: [PATCH] usermodule/bl00mbox: fix includes

---
 components/micropython/CMakeLists.txt | 1 +
 usermodule/micropython.cmake          | 4 ++--
 usermodule/mp_bl00mbox.c              | 7 ++++---
 3 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/components/micropython/CMakeLists.txt b/components/micropython/CMakeLists.txt
index 33dcb4397e..9ab7329ac0 100644
--- a/components/micropython/CMakeLists.txt
+++ b/components/micropython/CMakeLists.txt
@@ -106,6 +106,7 @@ set(IDF_COMPONENTS
     flow3r_bsp
     st3m
     ctx
+    bl00mbox
 
     app_update
     bootloader_support
diff --git a/usermodule/micropython.cmake b/usermodule/micropython.cmake
index 20723a93c7..ab06366471 100644
--- a/usermodule/micropython.cmake
+++ b/usermodule/micropython.cmake
@@ -1,6 +1,6 @@
 # If you want to add dependencies on other ESP-IDF modules, add them to
-# IDF_COMPONENTS in main/CMakeLists, as main/ is the component that the
-# usermodules are actually part of.
+# IDF_COMPONENTS in components/micropython/CMakeLists.txt, that is the component
+# that the usermodules are actually part of.
 
 add_library(usermod_badge23 INTERFACE)
 
diff --git a/usermodule/mp_bl00mbox.c b/usermodule/mp_bl00mbox.c
index 9b492e4d2c..f41cb4c7f2 100644
--- a/usermodule/mp_bl00mbox.c
+++ b/usermodule/mp_bl00mbox.c
@@ -1,9 +1,10 @@
 #include <stdio.h>
+
 #include "py/runtime.h"
 #include "py/obj.h"
-// sorry ;w;
-#include "badge23/../../../bl00mbox/include/bl00mbox.h"
-#include "badge23/../../../bl00mbox/buds/tinysynth/tinysynth.h"
+
+#include "bl00mbox.h"
+#include "tinysynth.h"
 
 #if !MICROPY_ENABLE_FINALISER
 #error "BADGE23_SYNTH requires MICROPY_ENABLE_FINALISER"
-- 
GitLab