From 667823d598d041f66dd70440a45c5e993e275da5 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Mon, 1 Apr 2024 22:34:40 +0700 Subject: [PATCH] Fix analog bank B not being read --- ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/AnalogCard.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/AnalogCard.cpp b/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/AnalogCard.cpp index ce769b4..d210797 100644 --- a/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/AnalogCard.cpp +++ b/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/AnalogCard.cpp @@ -154,12 +154,12 @@ bool AnalogCard::begin() ESP_LOGE("AnalogCard", "Card Analog ERROR: Failed to install DAC3"); success = false; } - if (!this->analogInputBankA.begin()) + if (!this->analogInputBankA.begin(ANALOG_INPUT_BANK_A_ADDRESS)) { ESP_LOGE("AnalogCard", "Card Analog ERROR: Failed to install analog input bank A"); success = false; } - if (!this->analogInputBankB.begin()) + if (!this->analogInputBankB.begin(ANALOG_INPUT_BANK_B_ADDRESS)) { ESP_LOGE("AnalogCard", "Card Analog ERROR: Failed to install analog input bank B"); success = false;