[FL-3385] New RTC flags in device info (#2884)
* Add new rtc flags to device info * FuriHal: bump info version * Fix local * Rework device info by hierarchy filtering Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
parent
a2a4fa8cda
commit
68eb1ecebb
@ -24,10 +24,10 @@ void furi_hal_info_get(PropertyValueCallback out, char sep, void* context) {
|
|||||||
// Device Info version
|
// Device Info version
|
||||||
if(sep == '.') {
|
if(sep == '.') {
|
||||||
property_value_out(&property_context, NULL, 2, "format", "major", "3");
|
property_value_out(&property_context, NULL, 2, "format", "major", "3");
|
||||||
property_value_out(&property_context, NULL, 2, "format", "minor", "2");
|
property_value_out(&property_context, NULL, 2, "format", "minor", "3");
|
||||||
} else {
|
} else {
|
||||||
property_value_out(&property_context, NULL, 3, "device", "info", "major", "2");
|
property_value_out(&property_context, NULL, 3, "device", "info", "major", "2");
|
||||||
property_value_out(&property_context, NULL, 3, "device", "info", "minor", "3");
|
property_value_out(&property_context, NULL, 3, "device", "info", "minor", "4");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Model name
|
// Model name
|
||||||
@ -298,6 +298,7 @@ void furi_hal_info_get(PropertyValueCallback out, char sep, void* context) {
|
|||||||
property_value_out(&property_context, NULL, 2, "radio", "alive", "false");
|
property_value_out(&property_context, NULL, 2, "radio", "alive", "false");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// RTC flags
|
||||||
property_value_out(
|
property_value_out(
|
||||||
&property_context,
|
&property_context,
|
||||||
"%u",
|
"%u",
|
||||||
@ -305,8 +306,52 @@ void furi_hal_info_get(PropertyValueCallback out, char sep, void* context) {
|
|||||||
"system",
|
"system",
|
||||||
"debug",
|
"debug",
|
||||||
furi_hal_rtc_is_flag_set(FuriHalRtcFlagDebug));
|
furi_hal_rtc_is_flag_set(FuriHalRtcFlagDebug));
|
||||||
|
property_value_out(
|
||||||
|
&property_context, "%u", 2, "system", "lock", furi_hal_rtc_is_flag_set(FuriHalRtcFlagLock));
|
||||||
|
property_value_out(
|
||||||
|
&property_context,
|
||||||
|
"%u",
|
||||||
|
2,
|
||||||
|
"system",
|
||||||
|
"orient",
|
||||||
|
furi_hal_rtc_is_flag_set(FuriHalRtcFlagHandOrient));
|
||||||
|
property_value_out(
|
||||||
|
&property_context,
|
||||||
|
"%u",
|
||||||
|
3,
|
||||||
|
"system",
|
||||||
|
"sleep",
|
||||||
|
"legacy",
|
||||||
|
furi_hal_rtc_is_flag_set(FuriHalRtcFlagLegacySleep));
|
||||||
|
property_value_out(
|
||||||
|
&property_context,
|
||||||
|
"%u",
|
||||||
|
2,
|
||||||
|
"system",
|
||||||
|
"stealth",
|
||||||
|
furi_hal_rtc_is_flag_set(FuriHalRtcFlagStealthMode));
|
||||||
|
|
||||||
property_value_out(
|
property_value_out(
|
||||||
&property_context, "%u", 3, "system", "heap", "track", furi_hal_rtc_get_heap_track_mode());
|
&property_context, "%u", 3, "system", "heap", "track", furi_hal_rtc_get_heap_track_mode());
|
||||||
|
property_value_out(&property_context, "%u", 2, "system", "boot", furi_hal_rtc_get_boot_mode());
|
||||||
|
property_value_out(
|
||||||
|
&property_context,
|
||||||
|
"%u",
|
||||||
|
3,
|
||||||
|
"system",
|
||||||
|
"locale",
|
||||||
|
"time",
|
||||||
|
furi_hal_rtc_get_locale_timeformat());
|
||||||
|
property_value_out(
|
||||||
|
&property_context,
|
||||||
|
"%u",
|
||||||
|
3,
|
||||||
|
"system",
|
||||||
|
"locale",
|
||||||
|
"date",
|
||||||
|
furi_hal_rtc_get_locale_dateformat());
|
||||||
|
property_value_out(
|
||||||
|
&property_context, "%u", 3, "system", "locale", "unit", furi_hal_rtc_get_locale_units());
|
||||||
property_value_out(
|
property_value_out(
|
||||||
&property_context, "%u", 3, "system", "log", "level", furi_hal_rtc_get_log_level());
|
&property_context, "%u", 3, "system", "log", "level", furi_hal_rtc_get_log_level());
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user