[FL-2139] SubGhz: refactoring GUI SubGhz (#910)
* SubGhz: refactoring GUI ReadRAW * SubGhz: replacing memcpy with strcpy * SubGhz: fix button name "Mode", fix delete scene, fix show name when loading a key * SubGhz: refactoring GUI SubGhz * scene_manager: add exit from last scene API * subghz: stop scene manager before stopping view dispatcher Co-authored-by: gornekich <n.gorbadey@gmail.com> Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -215,12 +215,15 @@ void subghz_parser_load_came_atomo_file(SubGhzParser* instance, const char* file
|
||||
(SubGhzProtocolCameAtomo*)instance->protocols[SubGhzProtocolTypeCameAtomo], file_name);
|
||||
}
|
||||
|
||||
void subghz_parser_load_keeloq_file(SubGhzParser* instance, const char* file_name) {
|
||||
bool subghz_parser_load_keeloq_file(SubGhzParser* instance, const char* file_name) {
|
||||
bool ret = false;
|
||||
if (subghz_keystore_load(instance->keystore, file_name)) {
|
||||
FURI_LOG_I(SUBGHZ_PARSER_TAG, "Successfully loaded keeloq keys from %s", file_name);
|
||||
ret = true;
|
||||
} else {
|
||||
FURI_LOG_W(SUBGHZ_PARSER_TAG, "Failed to load keeloq keysfrom %s", file_name);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
void subghz_parser_reset(SubGhzParser* instance) {
|
||||
|
@@ -67,8 +67,9 @@ void subghz_parser_load_came_atomo_file(SubGhzParser* instance, const char* file
|
||||
*
|
||||
* @param instance - SubGhzParser instance
|
||||
* @param file_name - "path/file_name"
|
||||
* @return bool
|
||||
*/
|
||||
void subghz_parser_load_keeloq_file(SubGhzParser* instance, const char* file_name);
|
||||
bool subghz_parser_load_keeloq_file(SubGhzParser* instance, const char* file_name);
|
||||
|
||||
/** Restarting all parsers
|
||||
*
|
||||
|
Reference in New Issue
Block a user