renderbug-cpp/src/BootOptions.h

20 lines
362 B
C
Raw Normal View History

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