From 7133e6e89b25cc39d5161512a0c32c23c1d6c74f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Tue, 10 May 2022 11:10:32 +0200 Subject: [PATCH] Use canon HW Identifier for M5 --- src/configuration.h | 4 ++++ variants/m5stack_core/platformio.ini | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/configuration.h b/src/configuration.h index 3e1e680f1..7ae279736 100644 --- a/src/configuration.h +++ b/src/configuration.h @@ -269,6 +269,10 @@ along with this program. If not, see . #define HW_VENDOR HardwareModel_NRF52840_PCA10059 +#elif defined(M5STACK) + +#define HW_VENDOR HardwareModel_M5STACK + #elif NRF52_SERIES #define HW_VENDOR HardwareModel_NRF52_UNKNOWN diff --git a/variants/m5stack_core/platformio.ini b/variants/m5stack_core/platformio.ini index 69b9eb92c..d022dee1d 100644 --- a/variants/m5stack_core/platformio.ini +++ b/variants/m5stack_core/platformio.ini @@ -8,7 +8,7 @@ src_filter = ${esp32_base.src_filter} +<../variants/m5stack_core> build_flags = - ${esp32_base.build_flags} -D PRIVATE_HW -I variants/m5stack_core + ${esp32_base.build_flags} -I variants/m5stack_core -DILI9341_DRIVER -DM5STACK -DUSER_SETUP_LOADED