Skip to content

Commit d6027ac

Browse files
Merge pull request #22 from jaylikesbunda/main
v1.1.6
2 parents b684398 + 6c5558a commit d6027ac

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## v1.1.6
4+
- sync files more frequently
5+
36
## v1.1.5
47
- expanded quick help menu with more context-specific tips
58
- swapped order of AT and Stop commands in ESP Check

application.fam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ App(
99
fap_category="GPIO/ESP",
1010
# Optional values
1111
icon="A_GhostESP_14",
12-
fap_version="1.1.5",
12+
fap_version="1.1.6",
1313
fap_icon="ghost_esp.png", # 10x10 1-bit PNG
1414
fap_icon_assets="images", # Image assets to compile for this application
1515
)

src/log_manager.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,16 @@ static bool parse_log_index(const char* filename, const char* prefix, int* index
3434

3535
char* end;
3636
*index = strtol(num_start, &end, 10);
37-
if(*end != '.' || *index < 0 || (end == num_start)) return false;
37+
38+
// Debug print to see what's happening
39+
FURI_LOG_D("LogManager", "Parsing '%s': num_start='%s', end='%s'", filename, num_start, end);
40+
41+
// Check for valid number and .txt extension
42+
if(*index < 0 || (end == num_start) || // Invalid number
43+
strncmp(end, ".txt", 4) != 0 || // Must end with .txt
44+
*(end + 4) != '\0') { // Nothing should follow .txt
45+
return false;
46+
}
3847

3948
return true;
4049
}

src/settings_ui.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ bool settings_custom_event_callback(void* context, uint32_t event_id) {
401401
"Updated by: Jay Candel\n"
402402
"Built with <3";
403403

404-
confirmation_view_set_header(app_state->confirmation_view, "Ghost ESP v1.1.5");
404+
confirmation_view_set_header(app_state->confirmation_view, "Ghost ESP v1.1.6");
405405
confirmation_view_set_text(app_state->confirmation_view, info_text);
406406

407407
// Save current view before switching

src/uart_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ void handle_uart_rx_data(uint8_t *buf, size_t len, void *context) {
243243
FURI_LOG_E("UART", "Failed to write log data: expected %zu, wrote %zu", len, written);
244244
} else {
245245
bytes_since_sync += written;
246-
if(bytes_since_sync >= 8192) {
246+
if(bytes_since_sync >= 1024) { // Sync every 1KB
247247
storage_file_sync(state->uart_context->storageContext->log_file);
248248
bytes_since_sync = 0;
249249
FURI_LOG_D("UART", "Synced log file to storage");

0 commit comments

Comments
 (0)