fix(bw): radio tools list may display incorrect/corrupted names (#5806)

This commit is contained in:
philmoz
2025-01-21 09:52:05 +10:00
committed by GitHub
parent 0317185acf
commit c4646cf02b
2 changed files with 39 additions and 43 deletions
+4 -2
View File
@@ -698,12 +698,14 @@ union ReusableBuffer
#endif
#if defined(NUM_BODY_LINES)
#define TOOL_NAME_MAX_LEN (LCD_W / FW)
#define TOOL_PATH_MAX_LEN (LEN_FILE_PATH_MAX + 10)
struct scriptInfo{
uint8_t index;
char label[(LCD_W / FW) + 1];
char label[TOOL_NAME_MAX_LEN + 1];
uint8_t module;
void (* tool)(event_t);
char path[LEN_FILE_PATH_MAX+10+1];
char path[TOOL_PATH_MAX_LEN + 1];
};
#endif