Fix analog bank B not being read

This commit is contained in:
Siwat Sirichai 2024-04-01 22:34:40 +07:00
parent 9344610582
commit 667823d598
1 changed files with 2 additions and 2 deletions

View File

@ -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;