From 8c98a45a4aa954d44468f2d02c3e586d7f2877fc Mon Sep 17 00:00:00 2001 From: Joe Kearney Date: Mon, 3 Feb 2025 20:50:30 -0600 Subject: [PATCH] WIP: New BLE --- components/NVM/Settings.c | 17 +++++++++++++++++ components/SystemK | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/components/NVM/Settings.c b/components/NVM/Settings.c index 0901514..aa6c230 100644 --- a/components/NVM/Settings.c +++ b/components/NVM/Settings.c @@ -157,6 +157,11 @@ SystemKResult_T SETTINGS_get_uint32_t(SystemKSettingID_T id, uint32_t *value) switch (id) { + case SYSTEMK_SETTING_DEVICE_TYPE: + *value = BLE_DEVICE_TYPE_32ESPECIAL; + return result; + break; + case SYSTEMK_SETTING_T_START_GAME_in_ms: key = "T_Start_Game_in_ms"; break; @@ -202,6 +207,18 @@ SystemKResult_T SETTINGS_set_uint32_t(SystemKSettingID_T id, uint32_t value) return result; } +SystemKResult_T SETTINGS_get_device_name(char* name) +{ + SystemKResult_T result = SYSTEMK_RESULT_NOT_IMPLEMENTED; + return result; +} + +SystemKResult_T SETTINGS_set_device_name(char* name) +{ + SystemKResult_T result = SYSTEMK_RESULT_NOT_IMPLEMENTED; + return result; +} + // Settings are saved on change in this implementation. SystemKResult_T SETTINGS_Save(void) { diff --git a/components/SystemK b/components/SystemK index 4fe072f..9386bd6 160000 --- a/components/SystemK +++ b/components/SystemK @@ -1 +1 @@ -Subproject commit 4fe072f2d3280b19aa53e197bd22ec44b174ff88 +Subproject commit 9386bd6ed01cac135878c4db5275588d0fc53ee0