From a9871315f22e8baecfda96c270aeb860fc6e6da3 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Mon, 1 Apr 2024 22:36:53 +0700 Subject: [PATCH] missing DACs no longer cause analog card to fails --- ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/AnalogCard.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/AnalogCard.cpp b/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/AnalogCard.cpp index d210797..2d029a6 100644 --- a/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/AnalogCard.cpp +++ b/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/AnalogCard.cpp @@ -133,26 +133,26 @@ uint16_t AnalogCard::analogRead(uint8_t pin) */ bool AnalogCard::begin() { - bool success = true; + bool success = false; if (!this->dac0.begin()) { ESP_LOGE("AnalogCard", "Card Analog ERROR: Failed to install DAC0"); - success = false; + // success = false; } if (!this->dac1.begin()) { ESP_LOGE("AnalogCard", "Card Analog ERROR: Failed to install DAC1"); - success = false; + // success = false; } if (!this->dac2.begin()) { ESP_LOGE("AnalogCard", "Card Analog ERROR: Failed to install DAC2"); - success = false; + // success = false; } if (!this->dac3.begin()) { ESP_LOGE("AnalogCard", "Card Analog ERROR: Failed to install DAC3"); - success = false; + // success = false; } if (!this->analogInputBankA.begin(ANALOG_INPUT_BANK_A_ADDRESS)) {