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;