mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-18 04:34:45 -07:00
Fix chat & subghz settings
This commit is contained in:
@@ -602,7 +602,8 @@ static void subghz_cli_command_encrypt_raw(Cli* cli, FuriString* args) {
|
||||
furi_string_free(source);
|
||||
}
|
||||
|
||||
static void subghz_cli_command_chat(Cli* cli, FuriString* args) {
|
||||
static void subghz_cli_command_chat(Cli* cli, FuriString* args, void* context) {
|
||||
UNUSED(context);
|
||||
uint32_t frequency = 433920000;
|
||||
|
||||
if(furi_string_size(args)) {
|
||||
@@ -795,7 +796,7 @@ static void subghz_cli_command(Cli* cli, FuriString* args, void* context) {
|
||||
}
|
||||
|
||||
if(furi_string_cmp_str(cmd, "chat") == 0) {
|
||||
subghz_cli_command_chat(cli, args);
|
||||
subghz_cli_command_chat(cli, args, NULL);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -853,6 +854,9 @@ void subghz_on_system_start() {
|
||||
|
||||
cli_add_command(cli, "subghz", CliCommandFlagDefault, subghz_cli_command, NULL);
|
||||
|
||||
// psst RM... i know you dont care much about errors, but if you ever see this... incompatible pointer type :3
|
||||
cli_add_command(cli, "chat", CliCommandFlagDefault, subghz_cli_command_chat, NULL);
|
||||
|
||||
furi_record_close(RECORD_CLI);
|
||||
#else
|
||||
UNUSED(subghz_cli_command);
|
||||
|
||||
Reference in New Issue
Block a user