Add support for setting/getting the Internet time sync flag.

(IsUserSystemClockAutomaticCorrectionEnabled and 	SetUserSystemClockAutomaticCorrectionEnabled.)
This commit is contained in:
The Dax 2019-11-19 17:50:09 -05:00 committed by fincs
parent bcac85852a
commit cd9f29fc8e
2 changed files with 20 additions and 0 deletions

View File

@ -211,6 +211,18 @@ Result setsysGetQuestFlag(bool *out);
*/
Result setsysSetQuestFlag(bool flag);
/**
* @brief IsUserSystemClockAutomaticCorrectionEnabled
* @param[out] out Output flag.
*/
Result setsysIsUserSystemClockAutomaticCorrectionEnabled(bool *out);
/**
* @brief SetUserSystemClockAutomaticCorrectionEnabled
* @param[in] flag Input flag.
*/
Result setsysSetUserSystemClockAutomaticCorrectionEnabled(bool flag);
/**
* @brief GetUsb30EnableFlag
* @param[out] out Output flag.

View File

@ -289,6 +289,14 @@ Result setsysSetQuestFlag(bool flag) {
return _setCmdInBoolNoOut(&g_setsysSrv, flag, 48);
}
Result setsysIsUserSystemClockAutomaticCorrectionEnabled(bool *out) {
return _setCmdNoInOutBool(&g_setsysSrv, out, 60);
}
Result setsysSetUserSystemClockAutomaticCorrectionEnabled(bool flag) {
return _setCmdInBoolNoOut(&g_setsysSrv, flag, 61);
}
Result setsysGetUsb30EnableFlag(bool *out) {
return _setCmdNoInOutBool(&g_setsysSrv, out, 65);
}