Update AnalogCard.cpp

This commit is contained in:
Siwat Sirichai 2024-04-01 22:37:20 +07:00
parent a9871315f2
commit 6ff586b27b
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ uint16_t AnalogCard::analogRead(uint8_t pin)
*/ */
bool AnalogCard::begin() bool AnalogCard::begin()
{ {
bool success = false; bool success = true;
if (!this->dac0.begin()) if (!this->dac0.begin())
{ {
ESP_LOGE("AnalogCard", "Card Analog ERROR: Failed to install DAC0"); ESP_LOGE("AnalogCard", "Card Analog ERROR: Failed to install DAC0");