Startup delay test added

This commit is contained in:
richonguzman
2024-05-13 08:45:19 -04:00
parent d9af677f69
commit 61168d9217
+7
View File
@@ -77,6 +77,8 @@ bool modemLoggedToAPRSIS = false;
String firstLine, secondLine, thirdLine, fourthLine, fifthLine, sixthLine, seventhLine, iGateBeaconPacket, iGateLoRaBeaconPacket;
//#define STARTUP_DELAY 5 //min
void setup() {
Serial.begin(115200);
POWER_Utils::setup();
@@ -87,6 +89,11 @@ void setup() {
iGateBeaconPacket = GPS_Utils::generateBeacon();
iGateLoRaBeaconPacket = GPS_Utils::generateiGateLoRaBeacon();
#ifdef STARTUP_DELAY // (TEST) just to wait for WiFi init of Routers
show_display("", "STARTUP DELAY ...", "", "", 0);
delay(STARTUP_DELAY * 60 * 1000);
#endif
#ifdef HELTEC_HTCT62
if (Config.lowPowerMode) {
gpio_wakeup_enable(GPIO_NUM_3, GPIO_INTR_HIGH_LEVEL);