Skip to content

Commit

Permalink
Update adc.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs committed Apr 16, 2024
1 parent 861d9b5 commit 45fa987
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/adc/adc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ uint16_t getBatteryVoltage(void)
#if defined(ARDUINO_ARCH_RP2040)
// Not implemented - no default VBAT input circuit (connect external divider to A0)
return 0;
#elif defined(ARDUINO_heltec_wifi_32_lora_V3)
return 0;
#elif defined(ARDUINO_M5STACK_Core2) || defined(ARDUINO_M5STACK_CORE2)
uint16_t voltage = M5.Power.getBatteryVoltage();
log_d("Voltage = %dmV", voltage);
Expand Down

0 comments on commit 45fa987

Please sign in to comment.