Skip to content

Commit 460d7c8

Browse files
author
David Lee
committed
Version 1.3
1 parent a42e22d commit 460d7c8

File tree

6 files changed

+19
-8
lines changed

6 files changed

+19
-8
lines changed

application.fam

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ App(
77
fap_icon="icons/meal_pager_10px.png",
88
fap_icon_assets="icons",
99
fap_category="Sub-Ghz",
10-
fap_version="1.2",
10+
fap_version="1.3",
1111
fap_author="leedave",
1212
fap_weburl="https://github.com/leedave/flipper-zero-meal-pager",
1313
fap_description="This app triggers restaurant pagers in a brute force manner, useful to test if devices are still functional.",

docs/changelog.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## v1.3
2+
- Fixed some memory leaks
3+
- Changed Subghz Protocol Registry to Fipper API conform variant
4+
- Version number in Start Screen
5+
- Code formatting
6+
17
## v1.2
28
- Fixed Memory bug in Last Station UI
39
- Added auto-correction when entries in First/Last station/pager are out of range

helpers/subghz/subghz_txrx.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "subghz_txrx_i.h"
22

3-
#include <lib/subghz/protocols/protocol_items.h>
3+
#include <lib/subghz/subghz_protocol_registry.h>
44
#include <applications/drivers/subghz/cc1101_ext/cc1101_ext_interconnect.h>
55
#include <lib/subghz/devices/cc1101_int/cc1101_int_interconnect.h>
66

meal_pager.c

+7-6
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,6 @@ Meal_Pager* meal_pager_app_alloc() {
6969

7070
app->subghz = subghz_alloc();
7171

72-
// Custom made int keyboard
73-
app->int_input = int_input_alloc();
74-
7572
// Load configs
7673
meal_pager_read_settings(app);
7774

@@ -123,15 +120,19 @@ void meal_pager_app_free(Meal_Pager* app) {
123120
int_input_free(app->int_input);
124121

125122
view_dispatcher_free(app->view_dispatcher);
123+
variable_item_list_free(app->variable_item_list);
124+
meal_pager_transmit_free(app->meal_pager_transmit);
125+
meal_pager_startscreen_free(app->meal_pager_startscreen);
126126
furi_record_close(RECORD_GUI);
127127

128-
app->gui = NULL;
129-
app->notification = NULL;
130-
131128
// Close File Browser
132129
furi_record_close(RECORD_DIALOGS);
130+
furi_record_close(RECORD_NOTIFICATION);
133131
furi_string_free(app->file_path);
134132

133+
app->gui = NULL;
134+
app->notification = NULL;
135+
135136
subghz_free(app->subghz);
136137

137138
//Remove whatever is left

meal_pager_i.h

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
#define SUBGHZ_APP_EXTENSION ".sub"
2727
#define SUBGHZ_APP_FOLDER ANY_PATH("subghz")
28+
#define MEAL_PAGER_VERSION "1.3"
2829

2930
typedef struct Meal_PagerTransmit Meal_PagerTransmit;
3031
typedef struct SubGhz SubGhz;

views/meal_pager_startscreen.c

+3
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,15 @@ void meal_pager_startscreen_set_callback(
2828

2929
void meal_pager_startscreen_draw(Canvas* canvas, Meal_PagerStartscreenModel* model) {
3030
UNUSED(model);
31+
char buffer[64];
3132
canvas_clear(canvas);
3233
canvas_set_color(canvas, ColorBlack);
3334
canvas_set_font(canvas, FontPrimary);
3435
canvas_draw_str_aligned(canvas, 64, 10, AlignCenter, AlignTop, "Restaurant Pager");
3536
canvas_set_font(canvas, FontSecondary);
3637
canvas_draw_str_aligned(canvas, 64, 22, AlignCenter, AlignTop, "Trigger Tool");
38+
snprintf(buffer, sizeof(buffer), "Version: %s", MEAL_PAGER_VERSION);
39+
canvas_draw_str_aligned(canvas, 64, 42, AlignCenter, AlignTop, buffer);
3740
elements_button_center(canvas, "Start");
3841
}
3942

0 commit comments

Comments
 (0)