File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,12 @@ void HeltecTrackerV2Board::begin() {
2020 pinMode (P_LORA_PA_TX_EN, OUTPUT);
2121 digitalWrite (P_LORA_PA_TX_EN,LOW);
2222
23- periph_power.begin ();
24-
2523 esp_reset_reason_t reason = esp_reset_reason ();
24+ if (reason != ESP_RST_DEEPSLEEP) {
25+ delay (1 ); // GC1109 startup time after cold power-on
26+ }
27+
28+ periph_power.begin ();
2629 if (reason == ESP_RST_DEEPSLEEP) {
2730 long wakeup_source = esp_sleep_get_ext1_wakeup_status ();
2831 if (wakeup_source & (1 << P_LORA_DIO_1)) { // received a LoRa packet (while in deep sleep)
Original file line number Diff line number Diff line change @@ -21,10 +21,12 @@ void HeltecV4Board::begin() {
2121 pinMode (P_LORA_PA_TX_EN, OUTPUT);
2222 digitalWrite (P_LORA_PA_TX_EN,LOW);
2323
24+ esp_reset_reason_t reason = esp_reset_reason ();
25+ if (reason != ESP_RST_DEEPSLEEP) {
26+ delay (1 ); // GC1109 startup time after cold power-on
27+ }
2428
2529 periph_power.begin ();
26-
27- esp_reset_reason_t reason = esp_reset_reason ();
2830 if (reason == ESP_RST_DEEPSLEEP) {
2931 long wakeup_source = esp_sleep_get_ext1_wakeup_status ();
3032 if (wakeup_source & (1 << P_LORA_DIO_1)) { // received a LoRa packet (while in deep sleep)
You can’t perform that action at this time.
0 commit comments