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
6 changed files with 22 additions and 6 deletions
Showing only changes of commit 509d2204cd - Show all commits

View file

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

@ -1 +1 @@
Subproject commit 47822bbdec20eda1a4c21871c7b4fe17c36bb731
Subproject commit cd33c3597481af67082b7db56bdab45ebd403ef6

View file

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

@ -1 +1 @@
Subproject commit 47822bbdec20eda1a4c21871c7b4fe17c36bb731
Subproject commit cd33c3597481af67082b7db56bdab45ebd403ef6