Fix auto#.g file handling, add NO_SD_AUTOSTART (#20071)
This commit is contained in:
@@ -90,10 +90,12 @@ public:
|
||||
static void openLogFile(char * const path);
|
||||
static void write_command(char * const buf);
|
||||
|
||||
// Auto-Start files
|
||||
static int8_t autostart_index; // Index of autoX.g files
|
||||
static void beginautostart();
|
||||
static void checkautostart();
|
||||
#if DISABLED(NO_SD_AUTOSTART) // Auto-Start auto#.g file handling
|
||||
static uint8_t autofile_index; // Next auto#.g index to run, plus one. Ignored by autofile_check when zero.
|
||||
static void autofile_begin(); // Begin check. Called automatically after boot-up.
|
||||
static bool autofile_check(); // Check for the next auto-start file and run it.
|
||||
static inline void autofile_cancel() { autofile_index = 0; }
|
||||
#endif
|
||||
|
||||
// Basic file ops
|
||||
static void openFileRead(char * const path, const uint8_t subcall=0);
|
||||
|
||||
Reference in New Issue
Block a user