Skip to content

Commit

Permalink
Revert ADC power off, it is deprecated in new SDKs
Browse files Browse the repository at this point in the history
  • Loading branch information
OK2MOP committed Jan 10, 2023
1 parent ee4d984 commit 1cd2aba
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/LoRa_APRS_Tracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#endif
#include <logger.h>
#ifdef ESP32
# include <driver/adc.h>
# include <esp_bt.h>
#endif
#include "BeaconManager.h"
Expand Down Expand Up @@ -104,9 +103,6 @@ void setup() {
esp_bt_controller_disable();
# if defined(TTGO_T_Beam_V1_0) // || defined(TTGO_T_Beam_V0_7)
// TTGO_T_Beam_V0_7 should probably work as well but could not be confirmed so it is disabled now
// We don't need built-in ADC for voltage measurement on T-beam 1.0
adc_power_off();

//Going to 20MHz breaks the display, 40 MHz reduces power consumption by ~15-20mA
if (! setCpuFrequencyMhz(40)) {
setCpuFrequencyMhz(80); // Some guides suggest this as backup for other CPUs
Expand Down

0 comments on commit 1cd2aba

Please sign in to comment.