missing DACs no longer cause analog card to fails
This commit is contained in:
parent
667823d598
commit
a9871315f2
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue