Skip to content

Commit

Permalink
turn off core 0 wdog, doesn't work on all revs of cpu
Browse files Browse the repository at this point in the history
  • Loading branch information
geeksville committed Jun 5, 2019
1 parent db922f4 commit 35dd908
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions include/board.h
Expand Up @@ -146,7 +146,7 @@

// #define STATUS_LED 16 // This board has a GPIO hooked to an LED, high is LED on

#define DISABLE_WATCHDOG // possibly busted on this rev of the CPU?
// #define DISABLE_WATCHDOG // possibly busted on this rev of the CPU?
// #define DISABLE_BROWNOUT // this board is powered by a battery with low voltage
// #define DISABLE_SPIFFS // this CPU is not properly partitioned from the ttgo factory, so don't use FFS for now

Expand Down Expand Up @@ -360,7 +360,8 @@
#define DISP_ADAFRUIT // If defined we assume either TFT or OLED which can be drawn with the regular adafruit draw operations
// #define DISP_COLOR // If defined we assume color display, else assumed mono

#define DISABLE_WATCHDOG // possibly busted on this rev of the CPU?
// #define DISABLE_BROWNOUT
// #define DISABLE_WATCHDOG // possibly busted on this rev of the CPU?

// camera code leaks memory due to heap misalignment (FIXME), so for the time being we force a brief sleep/reboot every day
#define FORCEREBOOT_INTERVAL (24 * 60 * 60 * 1000)
Expand Down
3 changes: 2 additions & 1 deletion src/main.ino
Expand Up @@ -891,7 +891,8 @@ void setup()
#endif

#ifndef DISABLE_WATCHDOG
enableCore0WDT(); // WD fail if the system threads die
// Doesn't seem to work
// enableCore0WDT(); // WD fail if the system threads die
#endif

#ifndef DISABLE_SPIFFS
Expand Down

0 comments on commit 35dd908

Please sign in to comment.