feat: dramatically reduce SD card access while in Tools screen (#5721)

This commit is contained in:
3djc
2024-12-22 13:00:39 +10:00
committed by GitHub
parent fc642aaf48
commit 2b920a014b
2 changed files with 100 additions and 7 deletions
+14
View File
@@ -701,7 +701,21 @@ union ReusableBuffer
PXX2HardwareAndSettings hardwareAndSettings; // radio_version
#endif
#if defined(NUM_BODY_LINES)
struct scriptInfo{
uint8_t index;
char label[(LCD_W / FW) + 1];
uint8_t module;
void (* tool)(event_t);
char path[LEN_FILE_PATH_MAX+10+1];
};
#endif
struct {
#if defined(NUM_BODY_LINES)
scriptInfo script[NUM_BODY_LINES];
uint8_t oldOffset;
#endif
#if defined(PXX2)
ModuleInformation modules[NUM_MODULES];
#endif