Skip to content

Commit

Permalink
Removed unused variable 'voltage'
Browse files Browse the repository at this point in the history
Removed unused variable 'voltage' in readRaw() to avoid a compiler warning (which was treated as an error by arduino-cli used for integration testing)
  • Loading branch information
matthias-bs authored Sep 4, 2022
1 parent 44cbad6 commit 22e310a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ESP32AnalogRead.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,6 @@ uint16_t ESP32AnalogRead::readRaw()
#endif

int32_t raw = 0;
uint32_t voltage = 0;
// Read ADC and obtain result in mV
if (unit == ADC_UNIT_1)
{
Expand Down Expand Up @@ -659,4 +658,4 @@ uint16_t ESP32AnalogRead::readRaw()
}
return raw;
#endif
}
}

0 comments on commit 22e310a

Please sign in to comment.