mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
<:N1:1130620612352679958><:N2:1130620354440745162>
This commit is contained in:
@@ -32,7 +32,8 @@ static void xtreme_app_scene_interface_lockscreen_bad_pins_format_changed(Variab
|
||||
app->save_settings = true;
|
||||
}
|
||||
|
||||
static void xtreme_app_scene_interface_lockscreen_allow_locked_rpc_commands_changed(VariableItem* item) {
|
||||
static void
|
||||
xtreme_app_scene_interface_lockscreen_allow_locked_rpc_commands_changed(VariableItem* item) {
|
||||
XtremeApp* app = variable_item_get_context(item);
|
||||
bool value = variable_item_get_current_value_index(item);
|
||||
variable_item_set_current_value_text(item, value ? "ON" : "OFF");
|
||||
|
||||
@@ -250,7 +250,6 @@ void bt_close_rpc_connection(Bt* bt) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Called from GAP thread
|
||||
static bool bt_on_gap_event_callback(GapEvent event, void* context) {
|
||||
furi_assert(context);
|
||||
|
||||
@@ -242,7 +242,7 @@ void desktop_lock(Desktop* desktop, bool pin_lock) {
|
||||
Cli* cli = furi_record_open(RECORD_CLI);
|
||||
cli_session_close(cli);
|
||||
furi_record_close(RECORD_CLI);
|
||||
if (!XTREME_SETTINGS()->allow_locked_rpc_commands) {
|
||||
if(!XTREME_SETTINGS()->allow_locked_rpc_commands) {
|
||||
Bt* bt = furi_record_open(RECORD_BT);
|
||||
bt_close_rpc_connection(bt);
|
||||
furi_record_close(RECORD_BT);
|
||||
|
||||
@@ -365,7 +365,8 @@ static void rpc_session_thread_state_callback(FuriThreadState thread_state, void
|
||||
}
|
||||
|
||||
RpcSession* rpc_session_open(Rpc* rpc, RpcOwner owner) {
|
||||
if(!furi_hal_rtc_is_flag_set(FuriHalRtcFlagLock) || XTREME_SETTINGS()->allow_locked_rpc_commands) {
|
||||
if(!furi_hal_rtc_is_flag_set(FuriHalRtcFlagLock) ||
|
||||
XTREME_SETTINGS()->allow_locked_rpc_commands) {
|
||||
furi_assert(rpc);
|
||||
|
||||
RpcSession* session = malloc(sizeof(RpcSession));
|
||||
|
||||
Reference in New Issue
Block a user