Skip to content

Commit

Permalink
Fixed includes for esp8266
Browse files Browse the repository at this point in the history
  • Loading branch information
mp-se committed Oct 2, 2023
1 parent 703a2ee commit 6c0279e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,10 @@ SOFTWARE.
#include <WiFi.h>
#endif

#if !defined(ESP8266)
#include <esp_int_wdt.h>
#include <esp_task_wdt.h>
#endif

#include <config.hpp>
#include <gyro.hpp>
Expand All @@ -57,8 +59,9 @@ void forcedReset() {
delay(100);
esp_task_wdt_init(1, true);
esp_task_wdt_add(NULL);
while (true)
; // wait for watchdog timer to be triggered
while (true) {
// wait for watchdog timer to be triggered
}
#endif
}

Expand Down

0 comments on commit 6c0279e

Please sign in to comment.