Make sure the mosfet gate for adc measuring circuit is low (#2530)

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
pull/2532/head v2.1.14.99a31c1
code8buster 2023-05-30 11:15:19 +00:00 zatwierdzone przez GitHub
rodzic 113026c372
commit 99a31c1fad
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -300,6 +300,10 @@ bool Power::analogInit()
} else {
LOG_INFO("ADCmod: ADC characterization based on default reference voltage\n");
}
#if defined(HELTEC_V3) || defined(HELTEC_WSL_V3)
pinMode(37, OUTPUT); // needed for P channel mosfet to work
digitalWrite(37, LOW);
#endif
#endif // ARCH_ESP32
#ifdef ARCH_NRF52