diff options
author | Skorpionm <85568270+Skorpionm@users.noreply.github.com> | 2022-07-17 12:45:21 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-17 12:45:21 +0300 |
commit | e7c3da1da9bbbd454b1a863e336dce3fbd5e6553 (patch) | |
tree | e233ce8726fbee66f1e5fb861bcd03d7325c4da7 /applications | |
parent | 7741a19244ce3af206c6434fc922f1340a96e547 (diff) |
[FL-2658, FL-2657] SubGhz: add new protocol (IronLogic, Comunello, Sommer(fsk476), Normstahl, KEY, EcoStar, Gibidi, Mutancode) (#1404)
* Subghz: fix cli no load keeloq_mfcodes_user
* SubGhz: add new protocol (IronLogic, Comunello, Sommer(fsk476), Normstahl, KEY, EcoStar, Gibidi, Mutancode)
* SubGhz: fix syntax
* SubGhz: fix error build
Co-authored-by: あく <alleteam@gmail.com>
Diffstat (limited to 'applications')
-rw-r--r-- | applications/subghz/subghz_cli.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/applications/subghz/subghz_cli.c b/applications/subghz/subghz_cli.c index 6c92a5d6..20930df2 100644 --- a/applications/subghz/subghz_cli.c +++ b/applications/subghz/subghz_cli.c @@ -246,6 +246,7 @@ void subghz_cli_command_rx(Cli* cli, string_t args, void* context) { SubGhzEnvironment* environment = subghz_environment_alloc(); subghz_environment_load_keystore(environment, "/ext/subghz/assets/keeloq_mfcodes"); + subghz_environment_load_keystore(environment, "/ext/subghz/assets/keeloq_mfcodes_user"); subghz_environment_set_came_atomo_rainbow_table_file_name( environment, "/ext/subghz/assets/came_atomo"); subghz_environment_set_nice_flor_s_rainbow_table_file_name( @@ -353,9 +354,16 @@ void subghz_cli_command_decode_raw(Cli* cli, string_t args, void* context) { SubGhzEnvironment* environment = subghz_environment_alloc(); if(subghz_environment_load_keystore(environment, "/ext/subghz/assets/keeloq_mfcodes")) { - printf("SubGhz test: Load_keystore \033[0;32mOK\033[0m\r\n"); + printf("SubGhz decode_raw: Load_keystore keeloq_mfcodes \033[0;32mOK\033[0m\r\n"); } else { - printf("SubGhz test: Load_keystore \033[0;31mERROR\033[0m\r\n"); + printf("SubGhz decode_raw: Load_keystore keeloq_mfcodes \033[0;31mERROR\033[0m\r\n"); + } + if(subghz_environment_load_keystore( + environment, "/ext/subghz/assets/keeloq_mfcodes_user")) { + printf("SubGhz decode_raw: Load_keystore keeloq_mfcodes_user \033[0;32mOK\033[0m\r\n"); + } else { + printf( + "SubGhz decode_raw: Load_keystore keeloq_mfcodes_user \033[0;31mERROR\033[0m\r\n"); } subghz_environment_set_came_atomo_rainbow_table_file_name( environment, "/ext/subghz/assets/came_atomo"); |