Merge branch 'New_BLE' of https://git.ktag.clubk.club/Software/2020TPC-SW into New_BLE
This commit is contained in:
commit
5e18b21943
4 changed files with 20 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue