mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-26 05:54:46 -07:00
fixes, rfid fuzzer still crashes
This commit is contained in:
@@ -57,7 +57,6 @@ typedef struct {
|
||||
FuriString* left_file;
|
||||
FuriString* right_file;
|
||||
FuriString* ok_file;
|
||||
FuriString* empty;
|
||||
|
||||
FuriString* up_l;
|
||||
FuriString* left_l;
|
||||
@@ -873,7 +872,6 @@ void unirfremix_free(UniRFRemix* app, bool with_subghz) {
|
||||
furi_string_free(app->left_file);
|
||||
furi_string_free(app->right_file);
|
||||
furi_string_free(app->ok_file);
|
||||
furi_string_free(app->empty);
|
||||
|
||||
furi_string_free(app->up_l);
|
||||
furi_string_free(app->down_l);
|
||||
@@ -911,6 +909,7 @@ int32_t unirfremix_app(void* p) {
|
||||
UniRFRemix* app = unirfremix_alloc();
|
||||
|
||||
app->file_path = furi_string_alloc();
|
||||
app->signal = furi_string_alloc();
|
||||
|
||||
//setup variables before population
|
||||
app->up_file = furi_string_alloc();
|
||||
@@ -918,7 +917,6 @@ int32_t unirfremix_app(void* p) {
|
||||
app->left_file = furi_string_alloc();
|
||||
app->right_file = furi_string_alloc();
|
||||
app->ok_file = furi_string_alloc();
|
||||
app->empty = furi_string_alloc();
|
||||
|
||||
app->up_l = furi_string_alloc();
|
||||
app->down_l = furi_string_alloc();
|
||||
@@ -995,7 +993,7 @@ int32_t unirfremix_app(void* p) {
|
||||
if(input.type == InputTypePress) {
|
||||
if(app->up_enabled) {
|
||||
if(app->processing == 0) {
|
||||
app->signal = app->empty;
|
||||
furi_string_reset(app->signal);
|
||||
app->signal = app->up_file;
|
||||
app->button = 1;
|
||||
app->processing = 1;
|
||||
@@ -1013,7 +1011,7 @@ int32_t unirfremix_app(void* p) {
|
||||
if(input.type == InputTypePress) {
|
||||
if(app->down_enabled) {
|
||||
if(app->processing == 0) {
|
||||
app->signal = app->empty;
|
||||
furi_string_reset(app->signal);
|
||||
app->signal = app->down_file;
|
||||
app->button = 2;
|
||||
app->processing = 1;
|
||||
@@ -1031,7 +1029,7 @@ int32_t unirfremix_app(void* p) {
|
||||
if(input.type == InputTypePress) {
|
||||
if(app->right_enabled) {
|
||||
if(app->processing == 0) {
|
||||
app->signal = app->empty;
|
||||
furi_string_reset(app->signal);
|
||||
app->signal = app->right_file;
|
||||
app->button = 3;
|
||||
app->processing = 1;
|
||||
@@ -1049,7 +1047,7 @@ int32_t unirfremix_app(void* p) {
|
||||
if(input.type == InputTypePress) {
|
||||
if(app->left_enabled) {
|
||||
if(app->processing == 0) {
|
||||
app->signal = app->empty;
|
||||
furi_string_reset(app->signal);
|
||||
app->signal = app->left_file;
|
||||
app->button = 4;
|
||||
app->processing = 1;
|
||||
@@ -1067,7 +1065,7 @@ int32_t unirfremix_app(void* p) {
|
||||
if(input.type == InputTypePress) {
|
||||
if(app->ok_enabled) {
|
||||
if(app->processing == 0) {
|
||||
app->signal = app->empty;
|
||||
furi_string_reset(app->signal);
|
||||
app->signal = app->ok_file;
|
||||
app->button = 5;
|
||||
app->processing = 1;
|
||||
|
||||
Reference in New Issue
Block a user