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

@@ -307,7 +307,7 @@ void setup()
setupModules();
// Do this after service.init (because that clears error_code)
#ifdef AXP192_SLAVE_ADDRESS
#ifdef HAS_AXP192
if (!axp192_found)
RECORD_CRITICALERROR(CriticalErrorCode_NoAXP192); // Record a hardware fault for missing hardware
#endif