remove arduino loop task
This commit is contained in:
parent
c0692c3879
commit
1de9a0bcd2
15
src/main.cpp
15
src/main.cpp
@ -427,12 +427,10 @@ void setup() {
|
|||||||
#warning you did not specify a time source, time will not be synched
|
#warning you did not specify a time source, time will not be synched
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
// initialize gps time
|
// initialize gps time
|
||||||
#if (HAS_GPS)
|
#if (HAS_GPS)
|
||||||
fetch_gpsTime();
|
fetch_gpsTime();
|
||||||
#endif
|
#endif
|
||||||
*/
|
|
||||||
|
|
||||||
#if (defined HAS_IF482 || defined HAS_DCF77)
|
#if (defined HAS_IF482 || defined HAS_DCF77)
|
||||||
ESP_LOGI(TAG, "Starting Clock Controller...");
|
ESP_LOGI(TAG, "Starting Clock Controller...");
|
||||||
@ -452,15 +450,8 @@ void setup() {
|
|||||||
// show compiled features
|
// show compiled features
|
||||||
ESP_LOGI(TAG, "Features:%s", features);
|
ESP_LOGI(TAG, "Features:%s", features);
|
||||||
|
|
||||||
|
vTaskDelete(NULL);
|
||||||
|
|
||||||
} // setup()
|
} // setup()
|
||||||
|
|
||||||
void loop() {
|
void loop() { vTaskDelete(NULL); }
|
||||||
|
|
||||||
while (1) {
|
|
||||||
#if (HAS_LORA)
|
|
||||||
os_runloop_once(); // execute lmic scheduled jobs and events
|
|
||||||
#else
|
|
||||||
delay(2); // yield to CPU
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user