Revert Heltec T114 power savings

As discussed on discord with @recrof people are having issues, possibly due to these changes. See https://github.com/meshcore-dev/MeshCore/issues/746

This reverts commit a16e011bd2.
Этот коммит содержится в:
taco
2025-10-21 00:34:57 +11:00
родитель 4687ab74e3
Коммит 5d495d505a
2 изменённых файлов: 0 добавлений и 44 удалений
-5
Просмотреть файл
@@ -27,9 +27,6 @@ public:
uint16_t getBattMilliVolts() override {
int adcvalue = 0;
NRF_SAADC->ENABLE = 1;
analogReadResolution(12);
analogReference(AR_INTERNAL_3_0);
pinMode(PIN_BAT_CTL, OUTPUT); // battery adc can be read only ctrl pin 6 set to high
@@ -39,8 +36,6 @@ public:
adcvalue = analogRead(PIN_VBAT_READ);
digitalWrite(6, 0);
NRF_SAADC->ENABLE = 0;
return (uint16_t)((float)adcvalue * MV_LSB * 4.9);
}