main/task_sdcard.c

branch
idf 5.1
changeset 129
31f9d3e4a85f
parent 119
1cef3c25426b
child 137
e0f50087c909
--- a/main/task_sdcard.c	Mon Feb 19 15:07:28 2024 +0100
+++ b/main/task_sdcard.c	Mon Jun 24 17:05:20 2024 +0200
@@ -22,6 +22,9 @@
 #include "config.h"
 
 
+extern my_runtime_t     runtime;
+extern my_recipe_t	recipe;
+
 
 SDCARD_State		*sdcard_state;			///< SD card status
 JSON_log		*json_log;			///< JSON log array
@@ -120,7 +123,7 @@
 
 void log_json(void)
 {
-    char        filename[64], strftime_buf[64];
+    char        filename[96], strftime_buf[64];
     FILE	*f;
     bool	addcomma = true;
 
@@ -164,7 +167,7 @@
 
 void log_annotation(int annotation_type, char *label)
 {
-    char        filename[64];
+    char        filename[96];
     char	bordercolor[9], color[9], pos[8];
     FILE        *f;
     bool        addcomma = true;
@@ -452,7 +455,7 @@
     sdmmc_card_t*	card;
     esp_err_t		ret;
     EventBits_t		uxBits;
-    char		filename[64];
+    char		filename[96];
 
     sdcard_state = malloc(sizeof(SDCARD_State));
     sdcard_state->host_ok = false;
@@ -579,7 +582,7 @@
 	    // Close the logfile.
 	    if (strlen(sdcard_state->logfile) && (sdcard_state->card_present == true)) {
 		log_msg(TAG, "Closing logfile");
-		char	destname[64];
+		char	destname[96];
 		sprintf(destname, "/sdcard/w/log");
 		int rc = mkdir(destname, 0755);
 		if (rc && (errno != EEXIST)) {

mercurial