From 6ff586b27b245adc4f48b8b7bab0b7893ea39e99 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Mon, 1 Apr 2024 22:37:20 +0700 Subject: [PATCH] Update AnalogCard.cpp --- ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/AnalogCard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/AnalogCard.cpp b/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/AnalogCard.cpp index 2d029a6..5d61870 100644 --- a/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/AnalogCard.cpp +++ b/ESPMegaPRO-OS-SDK/lib/ESPMegaPRO/AnalogCard.cpp @@ -133,7 +133,7 @@ uint16_t AnalogCard::analogRead(uint8_t pin) */ bool AnalogCard::begin() { - bool success = false; + bool success = true; if (!this->dac0.begin()) { ESP_LOGE("AnalogCard", "Card Analog ERROR: Failed to install DAC0");