mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-27 12:12:07 +00:00
Move device code from main.cpp to earlyInitVariant (#9438)
This commit is contained in:
@@ -20,4 +20,11 @@ void initVariant()
|
||||
pinMode(PIN_WD_EN, OUTPUT);
|
||||
digitalWrite(PIN_WD_EN, HIGH); // Enable the Watchdog at boot
|
||||
#endif
|
||||
}
|
||||
|
||||
void variant_shutdown()
|
||||
{
|
||||
#ifdef PIN_WD_EN
|
||||
digitalWrite(PIN_WD_EN, LOW);
|
||||
#endif
|
||||
}
|
||||
Reference in New Issue
Block a user