mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-20 04:54:45 -07:00
Who tf wrote this, and why? | Biggest stability update ever
Bro, what the fuck is this bullshit? I swear imma go cry if I see more shit like that...
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
#include <notification/notification.h>
|
||||
#include <notification/notification_messages.h>
|
||||
|
||||
#include <assets_icons.h>
|
||||
|
||||
#include <flipper_format/flipper_format_i.h>
|
||||
#include <lib/toolbox/path.h>
|
||||
#include <applications/main/subghz/subghz_i.h>
|
||||
@@ -18,33 +20,11 @@
|
||||
#include <lib/subghz/protocols/keeloq.h>
|
||||
#include <lib/subghz/protocols/star_line.h>
|
||||
|
||||
#include <SubGHz_Remote_icons.h>
|
||||
|
||||
#define UNIRFMAP_FOLDER "/ext/subghz/unirf"
|
||||
#define UNIRFMAP_FOLDER "/ext/unirf"
|
||||
#define UNIRFMAP_EXTENSION ".txt"
|
||||
|
||||
#define TAG "UniRF Remix"
|
||||
|
||||
static const char* mfname;
|
||||
|
||||
static int kl_type;
|
||||
|
||||
void keeloq_reset_mfname() {
|
||||
mfname = "";
|
||||
}
|
||||
|
||||
void keeloq_reset_kl_type() {
|
||||
kl_type = 0;
|
||||
}
|
||||
|
||||
void star_line_reset_mfname() {
|
||||
mfname = "";
|
||||
}
|
||||
|
||||
void star_line_reset_kl_type() {
|
||||
kl_type = 0;
|
||||
}
|
||||
|
||||
typedef struct {
|
||||
uint32_t frequency;
|
||||
FuriString* name;
|
||||
@@ -707,8 +687,6 @@ static void render_callback(Canvas* canvas, void* ctx) {
|
||||
canvas_draw_icon(canvas, 113, 15, &I_Pin_cell_13x13);
|
||||
canvas_draw_icon(canvas, 116, 18, &I_Pin_star_7x7);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
//Repeat indicator
|
||||
@@ -728,7 +706,7 @@ static void input_callback(InputEvent* input_event, void* ctx) {
|
||||
void unirfremix_subghz_alloc(UniRFRemix* app) {
|
||||
// load subghz presets
|
||||
app->setting = subghz_setting_alloc();
|
||||
subghz_setting_load(app->setting, EXT_PATH("subghz/assets/setting_user.txt"));
|
||||
subghz_setting_load(app->setting, EXT_PATH("subghz/assets/setting_user"));
|
||||
|
||||
// load mfcodes
|
||||
app->environment = subghz_environment_alloc();
|
||||
@@ -1004,8 +982,6 @@ int32_t unirfremix_app(void* p) {
|
||||
case 5:
|
||||
app->send_status_c = 5;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
app->processing = 2;
|
||||
|
||||
Reference in New Issue
Block a user