Skip to content

Commit

Permalink
Merge pull request #2 from ElectronicCats/dev
Browse files Browse the repository at this point in the history
fix: compatible with unlshd-076
  • Loading branch information
AdonaiDiazEsparza authored Aug 19, 2024
2 parents 50808c9 + d03af8c commit b482c55
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Canbus_app/app_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ static App* app_alloc() {

app->frameArray = (CANFRAME*) malloc(100 * sizeof(CANFRAME));

app->log_file_path = (char*) malloc(100 * sizeof(char));

app->frame_to_send = malloc(sizeof(CANFRAME));

makePaths(app);
Expand Down Expand Up @@ -109,6 +111,7 @@ static void app_free(App* app) {
furi_record_close(RECORD_STORAGE);
furi_record_close(RECORD_DIALOGS);

free(app->log_file_path);
free(app->frameArray);

free(app);
Expand Down
2 changes: 1 addition & 1 deletion Canbus_app/app_user.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ typedef struct {
Storage* storage;
DialogsApp* dialogs;
File* log_file;
char log_file_path[100];
char* log_file_path;
bool log_file_ready;
uint8_t save_logs;

Expand Down
2 changes: 1 addition & 1 deletion Canbus_app/scenes/SnifferOption.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ char* sequential_file_resolve_path_address(Storage* storage,
const char* dir,
const char* prefix,
const char* extension) {
FuriHalRtcDateTime datatime;
DateTime datatime;
furi_hal_rtc_get_datetime(&datatime);
char file_path[256];
int file_index = 0;
Expand Down

0 comments on commit b482c55

Please sign in to comment.