Skip to content

Commit

Permalink
Merge pull request #12 from leedave/feature/catalog_sdk_upd
Browse files Browse the repository at this point in the history
Feature/catalog sdk upd
  • Loading branch information
leedave authored Feb 1, 2024
2 parents 2b2adc2 + 8fc794f commit 8520f4c
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 21 deletions.
2 changes: 1 addition & 1 deletion application.fam
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ App(
stack_size=3 * 1024,
fap_icon="icons/xremote_10px.png",
fap_icon_assets="icons",
fap_version="2.2",
fap_version="2.3",
fap_category="Infrared",
fap_author="Leedave",
fap_description="One-Click, sends multiple commands",
Expand Down
3 changes: 3 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2.3
- Fixed Crash after creating chains with SubGhz Items

## 2.2
- Fixed incompatibility to Flipper-catalog / uFBT compiler

Expand Down
6 changes: 0 additions & 6 deletions models/subghz/xremote_sg_remote.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
struct SubGhzRemote {
FuriString* name;
FuriString* filename;
FuriString* path;
};

const char* xremote_sg_remote_get_name(SubGhzRemote* remote) {
Expand All @@ -20,13 +19,11 @@ SubGhzRemote* xremote_sg_remote_alloc() {
SubGhzRemote* remote = malloc(sizeof(SubGhzRemote));
remote->name = furi_string_alloc();
remote->filename = furi_string_alloc();
remote->path = furi_string_alloc();

return remote;
}

void xremote_sg_remote_free(SubGhzRemote* remote) {
furi_string_free(remote->path);
furi_string_free(remote->name);
furi_string_free(remote->filename);

Expand All @@ -52,10 +49,7 @@ bool xremote_sg_remote_load(SubGhzRemote* remote, FuriString* path) {
if(dotPosition != NULL) { // check if there is a dot in the file name
*dotPosition = '\0'; // set the dot position to NULL character to truncate the string
}
//remote->name = fileName;
furi_string_set_str(remote->name, fileName);
//furi_string_set_str(remote->filename, fileName);
//free(fileName);
uint32_t version;
if(!flipper_format_read_header(ff, buf, &version)) break;
if(!furi_string_equal(buf, "Flipper SubGhz RAW File") || (version != 1)) break;
Expand Down
3 changes: 0 additions & 3 deletions scenes/xremote_scene_ir_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,8 @@ void xremote_scene_ir_list_on_enter(void* context) {

if(success) {
//Load Remote Button View
//scene_manager_next_scene(app->scene_manager, XRemoteSceneCreateAdd);
//scene_manager_next_scene(app->scene_manager, XRemoteSceneWip);
scene_manager_next_scene(app->scene_manager, XRemoteSceneIrRemote);
} else {
//scene_manager_next_scene(app->scene_manager, XRemoteSceneWip);
scene_manager_previous_scene(app->scene_manager);
}
}
Expand Down
4 changes: 0 additions & 4 deletions scenes/xremote_scene_sg_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,12 @@ void xremote_scene_sg_list_on_enter(void* context) {
view_dispatcher_switch_to_view(app->view_dispatcher, XRemoteViewIdStack);

xremote_sg_remote_load(app->sg_remote_buffer, app->file_path);
//xremote_ir_remote_load(app->ir_remote_buffer, app->file_path);
xremote_cross_remote_add_subghz(app->cross_remote, app->sg_remote_buffer);
}

if(success) {
//Load Remote Button View
//scene_manager_next_scene(app->scene_manager, XRemoteSceneCreateAdd);
//scene_manager_next_scene(app->scene_manager, XRemoteSceneWip);
scene_manager_next_scene(app->scene_manager, XRemoteSceneCreate);
//scene_manager_next_scene(app->scene_manager, XRemoteSceneIrRemote);
} else {
scene_manager_previous_scene(app->scene_manager);
}
Expand Down
8 changes: 1 addition & 7 deletions xremote_i.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,4 @@ typedef struct CrossRemote CrossRemote;
typedef struct CrossRemoteItem CrossRemoteItem;

typedef struct XRemoteTransmit XRemoteTransmit;
typedef struct XRemotePauseSet XRemotePauseSet;
//typedef struct XRemoteInfoscreen XRemoteInfoscreen;

//typedef struct InfraredRemote InfraredRemote;
//typedef struct InfraredRemoteButton InfraredRemoteButton;
//typedef struct InfraredSignal InfraredSignal;
//typedef struct InfraredRawSignal InfraredRawSignal;
typedef struct XRemotePauseSet XRemotePauseSet;

0 comments on commit 8520f4c

Please sign in to comment.