mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-19 17:22:59 +00:00
Add tbeam esp32s3 version support, replace AXP202X_Library with XPowersLIb
This commit is contained in:
@@ -128,7 +128,7 @@ class ButtonThread : public concurrency::OSThread
|
||||
#endif
|
||||
// If user button is held down for 5 seconds, shutdown the device.
|
||||
if ((millis() - longPressTime > 5 * 1000) && (longPressTime > 0)) {
|
||||
#ifdef HAS_AXP192
|
||||
#if defined(HAS_AXP192) || defined(HAS_AXP2101)
|
||||
if (axp192_found == true) {
|
||||
setLed(false);
|
||||
power->shutdown();
|
||||
|
||||
Reference in New Issue
Block a user