fix critical bug with subghz rpc

This commit is contained in:
MX 2022-10-03 18:21:18 +03:00
parent 8dba4f25ae
commit fbacdc5b7b
No known key found for this signature in database
GPG key ID: 6C4C311DFD4B4AB5

View file

@ -1,4 +1,6 @@
#include "../subghz_i.h"
#include <lib/subghz/protocols/keeloq.h>
#include <lib/subghz/protocols/star_line.h>
typedef enum {
SubGhzRpcStateIdle,
@ -97,4 +99,10 @@ void subghz_scene_rpc_on_exit(void* context) {
popup_set_header(popup, NULL, 0, 0, AlignCenter, AlignBottom);
popup_set_text(popup, NULL, 0, 0, AlignCenter, AlignTop);
popup_set_icon(popup, 0, 0, NULL);
// Oh shit here we go again
keeloq_reset_mfname();
keeloq_reset_kl_type();
star_line_reset_mfname();
star_line_reset_kl_type();
}