fix(bw): tool scripts with long file names not working (#6027)

This commit is contained in:
philmoz
2025-03-29 11:41:26 +10:00
committed by GitHub
parent 18a0e3629c
commit 6793b30fd8
2 changed files with 19 additions and 21 deletions
+2 -2
View File
@@ -685,13 +685,13 @@ union ReusableBuffer
#if defined(NUM_BODY_LINES)
#define TOOL_NAME_MAX_LEN (LCD_W / FW)
#define TOOL_PATH_MAX_LEN (LEN_FILE_PATH_MAX + 10)
#define TOOL_PATH_MAX_LEN 40
struct scriptInfo{
uint8_t index;
char label[TOOL_NAME_MAX_LEN + 1];
uint8_t module;
void (* tool)(event_t);
char path[TOOL_PATH_MAX_LEN + 1];
char filename[TOOL_PATH_MAX_LEN + 1];
};
#endif