Pulled in the latest SystemK (with new BLE). #1

Merged
Joe merged 7 commits from New_BLE into main 2025-06-08 22:21:17 +00:00
4 changed files with 20 additions and 4 deletions
Showing only changes of commit 5e18b21943 - Show all commits

View file

@ -97,6 +97,10 @@ SystemKResult_T SETTINGS_get_uint32_t(SystemKSettingID_T id, uint32_t * value)
switch (id) switch (id)
{ {
case SYSTEMK_SETTING_DEVICE_TYPE:
*value = 1; // 2020TPC
break;
case SYSTEMK_SETTING_T_START_GAME_in_ms: case SYSTEMK_SETTING_T_START_GAME_in_ms:
*value = NVM_T_START_GAME_IN_MS; *value = NVM_T_START_GAME_IN_MS;
break; break;
@ -123,6 +127,10 @@ SystemKResult_T SETTINGS_set_uint32_t(SystemKSettingID_T id, uint32_t value)
switch (id) switch (id)
{ {
case SYSTEMK_SETTING_DEVICE_TYPE:
result = SYSTEMK_RESULT_NOT_IMPLEMENTED;
break;
case SYSTEMK_SETTING_T_START_GAME_in_ms: case SYSTEMK_SETTING_T_START_GAME_in_ms:
NVM_T_START_GAME_IN_MS = value; NVM_T_START_GAME_IN_MS = value;
break; break;
@ -147,7 +155,7 @@ SystemKResult_T SETTINGS_get_device_name(char* name)
{ {
static char device_name[] = "Another 2020TPC"; static char device_name[] = "Another 2020TPC";
name = device_name; strncpy(name, device_name, sizeof(device_name));
return SYSTEMK_RESULT_SUCCESS; return SYSTEMK_RESULT_SUCCESS;
} }

View file

@ -97,6 +97,10 @@ SystemKResult_T SETTINGS_get_uint32_t(SystemKSettingID_T id, uint32_t * value)
switch (id) switch (id)
{ {
case SYSTEMK_SETTING_DEVICE_TYPE:
*value = 1; // 2020TPC
break;
case SYSTEMK_SETTING_T_START_GAME_in_ms: case SYSTEMK_SETTING_T_START_GAME_in_ms:
*value = NVM_T_START_GAME_IN_MS; *value = NVM_T_START_GAME_IN_MS;
break; break;
@ -123,6 +127,10 @@ SystemKResult_T SETTINGS_set_uint32_t(SystemKSettingID_T id, uint32_t value)
switch (id) switch (id)
{ {
case SYSTEMK_SETTING_DEVICE_TYPE:
result = SYSTEMK_RESULT_NOT_IMPLEMENTED;
break;
case SYSTEMK_SETTING_T_START_GAME_in_ms: case SYSTEMK_SETTING_T_START_GAME_in_ms:
NVM_T_START_GAME_IN_MS = value; NVM_T_START_GAME_IN_MS = value;
break; break;
@ -147,7 +155,7 @@ SystemKResult_T SETTINGS_get_device_name(char* name)
{ {
static char device_name[] = "Another 2020TPC"; static char device_name[] = "Another 2020TPC";
name = device_name; strncpy(name, device_name, sizeof(device_name));
return SYSTEMK_RESULT_SUCCESS; return SYSTEMK_RESULT_SUCCESS;
} }