From ddc5a59ecef5215ef59ac98768488156e3e2b102 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Mon, 8 Aug 2022 16:16:50 +0200 Subject: [PATCH] Missed one or two --- src/ButtonThread.h | 2 +- src/debug/i2cScan.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ButtonThread.h b/src/ButtonThread.h index fe014246c..58c5d525f 100644 --- a/src/ButtonThread.h +++ b/src/ButtonThread.h @@ -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(); diff --git a/src/debug/i2cScan.h b/src/debug/i2cScan.h index 2b50f16e4..ca7b40a14 100644 --- a/src/debug/i2cScan.h +++ b/src/debug/i2cScan.h @@ -3,6 +3,10 @@ #include #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;