Missed one or two

This commit is contained in:
Thomas Göttgens 2022-08-08 16:16:50 +02:00
parent 6382f67b89
commit ddc5a59ece
2 changed files with 5 additions and 1 deletions

View File

@ -132,7 +132,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 TBEAM_V10
#ifdef HAS_AXP192
if (axp192_found == true) {
setLed(false);
power->shutdown();

View File

@ -3,6 +3,10 @@
#include <Wire.h>
#include "mesh/generated/telemetry.pb.h"
#ifdef HAS_AXP192
#include "axp20x.h"
#endif
#if HAS_WIRE
uint16_t getRegisterValue(uint8_t address, uint8_t reg, uint8_t length) {
uint16_t value = 0x00;