Skip to content

Commit

Permalink
Startup delay test added
Browse files Browse the repository at this point in the history
  • Loading branch information
richonguzman committed May 13, 2024
1 parent d9af677 commit 61168d9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/LoRa_APRS_iGate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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);
Expand Down

0 comments on commit 61168d9

Please sign in to comment.