Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Prosvetova <anna@prosvetova.me>2021-12-24 21:47:48 +0300
committerGitHub <noreply@github.com>2021-12-24 21:47:48 +0300
commit46a25c295ced2dc88025dd00f718469566648e75 (patch)
treee28c24b6fa474ba5bf5f9d45236a2e6b7367356b /applications/bt
parent7cea359be84cb8bf72879f1264faf9b088b054f9 (diff)
Decouple apps to allow smaller builds. Loader deadlock fix and refactoring. (#929)
* Lib: always include rfal * Gui: remove screen_stream * Input: decouple from Cli * Loader: decouple from Cli * Desktop: ignore missing favorite app, decouple from Archive * Make: make Notification a Gui dependency * Make: embed debugging information into elfs * Loader: hide Plugins submenu when plugins ga arimasen * Applications: update on start hook usage * Loader: fix dead lock on menu rebuild with open rpc, new cli command. Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
Diffstat (limited to 'applications/bt')
-rw-r--r--applications/bt/bt_cli.c4
-rw-r--r--applications/bt/bt_cli.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/applications/bt/bt_cli.c b/applications/bt/bt_cli.c
index 3dcc9a8e..4b6d8ee9 100644
--- a/applications/bt/bt_cli.c
+++ b/applications/bt/bt_cli.c
@@ -3,7 +3,8 @@
#include <furi-hal.h>
#include "bt_settings.h"
-void bt_cli_init() {
+void bt_on_system_start() {
+#ifdef SRV_CLI
Cli* cli = furi_record_open("cli");
cli_add_command(cli, "bt_info", CliCommandFlagDefault, bt_cli_command_info, NULL);
@@ -13,6 +14,7 @@ void bt_cli_init() {
cli_add_command(cli, "bt_rx_pt", CliCommandFlagDefault, bt_cli_command_packet_rx, NULL);
furi_record_close("cli");
+#endif
}
void bt_cli_command_info(Cli* cli, string_t args, void* context) {
diff --git a/applications/bt/bt_cli.h b/applications/bt/bt_cli.h
index 1aa76d68..0e30145f 100644
--- a/applications/bt/bt_cli.h
+++ b/applications/bt/bt_cli.h
@@ -2,7 +2,7 @@
#include <cli/cli.h>
-void bt_cli_init();
+void bt_on_system_start();
void bt_cli_command_info(Cli* cli, string_t args, void* context);