From 627754a5e6047b1bf532c39678ea94565f1806e2 Mon Sep 17 00:00:00 2001 From: Anatole SCHRAMM Date: Wed, 25 Oct 2023 12:43:41 +0200 Subject: [PATCH] Cleaned and added and new HARDWARE_PLATFORM to set the BLE name of the device as well as enable specific features if it is the release firmware ie the watch that is used daily --- src/W800_SDK_v1.00.10/app/app_config.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/W800_SDK_v1.00.10/app/app_config.h b/src/W800_SDK_v1.00.10/app/app_config.h index 1acd8f9..9b2dea1 100644 --- a/src/W800_SDK_v1.00.10/app/app_config.h +++ b/src/W800_SDK_v1.00.10/app/app_config.h @@ -12,13 +12,15 @@ * @brief Defines for which platform to compile the firmware for : * * SMART_WATCH_BREADBOARD : the smart watch dev hardware which is on a breadboard - * SMART_WATCH_PCB : the smart watch using the PCB + * SMART_WATCH_PCB_DEV : the smart watch using the PCB which serves as the development platform + * SMART_WATCH_PCB_RELEASE : the smart watch using the PCB for every day use (production) * */ -#define SMART_WATCH_BREADBOARD (0) -#define SMART_WATCH_PCB (1) +#define SMART_WATCH_BREADBOARD (0) +#define SMART_WATCH_PCB_DEV (1) +#define SMART_WATCH_PCB_RELEASE (2) -#define HARDWARE_PLATFORM SMART_WATCH_PCB +#define HARDWARE_PLATFORM SMART_WATCH_PCB_RELEASE /** * @brief Define which kind of logs to display : @@ -103,6 +105,12 @@ * @brief BLE advertised device name * */ -#define BLE_DEVICE_NAME "MDBT42Q_W800SW" +#if HARDWARE_PLATFORM == SMART_WATCH_BREADBOARD + #define BLE_DEVICE_NAME "MDBT42Q_BRDDEV" +#elif HARDWARE_PLATFORM == SMART_WATCH_PCB_DEV + #define BLE_DEVICE_NAME "MDBT42Q_PCBDEV" +#else + #define BLE_DEVICE_NAME "MDBT42Q_W800SW" +#endif #endif //APP_CONFIG_H \ No newline at end of file