2021-03-29 08:10:55 +00:00
|
|
|
#pragma once
|
2023-02-19 17:40:16 +00:00
|
|
|
#include <Arduino.h>
|
2021-03-29 08:10:55 +00:00
|
|
|
|
|
|
|
struct BootOptions {
|
|
|
|
static void initPins();
|
|
|
|
|
|
|
|
BootOptions();
|
|
|
|
|
|
|
|
void waitForRelease();
|
|
|
|
|
|
|
|
bool isSetup = false;
|
|
|
|
bool isSerial = false;
|
|
|
|
bool isFlash = false;
|
|
|
|
bool lastBootWasFlash = false;
|
2021-04-10 18:10:25 +00:00
|
|
|
bool isSafeMode = false;
|
2023-02-19 17:40:16 +00:00
|
|
|
uint8_t crashCount = 0;
|
|
|
|
uint8_t resetReason = 0;
|
2021-03-29 08:10:55 +00:00
|
|
|
};
|