Replace TBEAM_V10 macro guards with more appropriate HAS_AXP192. Also eliminates symbol redefinition of AXP192_SLAVE_ADDRESS

This commit is contained in:
Thomas Göttgens
2022-08-08 16:13:38 +02:00
parent 401b5d92aa
commit 6382f67b89
6 changed files with 12 additions and 14 deletions

View File

@@ -110,7 +110,7 @@ void scanI2Cdevice(void)
screen_found = addr;
DEBUG_MSG("st7567 display found\n");
}
#ifdef AXP192_SLAVE_ADDRESS
#ifdef HAS_AXP192
if (addr == AXP192_SLAVE_ADDRESS) {
axp192_found = true;
DEBUG_MSG("axp192 PMU found\n");