Skip to content

Commit

Permalink
Merge pull request #10 from matthias-bs/patch-1
Browse files Browse the repository at this point in the history
Removed unused variable 'voltage'
  • Loading branch information
madhephaestus authored Sep 6, 2022
2 parents 44cbad6 + 22e310a commit 79dcb94
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 79dcb94

Please sign in to comment.