mirror of
https://github.com/EdgeTX/edgetx.git
synced 2025-07-24 16:55:15 +03:00
RTC battery voltage fix
This commit is contained in:
parent
3417e29e69
commit
e107e1853c
2 changed files with 13 additions and 2 deletions
|
@ -302,6 +302,13 @@ void menuRadioHardware(event_t event)
|
|||
}
|
||||
#endif
|
||||
|
||||
if (menuEvent) {
|
||||
disableVBatBridge();
|
||||
}
|
||||
else if (event == EVT_ENTRY) {
|
||||
enableVBatBridge();
|
||||
}
|
||||
|
||||
for (uint8_t i=0; i<NUM_BODY_LINES; i++) {
|
||||
coord_t y = MENU_HEADER_HEIGHT + 1 + i*FH;
|
||||
uint8_t k = i+menuVerticalOffset;
|
||||
|
|
|
@ -305,8 +305,12 @@ void adcInit();
|
|||
void adcRead();
|
||||
uint16_t getAnalogValue(uint8_t index);
|
||||
void setSticksGain(uint8_t gains);
|
||||
#define enableVBatBridge() do { } while(0)
|
||||
#define disableVBatBridge()
|
||||
inline void enableVBatBridge()
|
||||
{
|
||||
}
|
||||
inline void disableVBatBridge()
|
||||
{
|
||||
}
|
||||
|
||||
// Battery driver
|
||||
uint16_t getBatteryVoltage(); // returns current battery voltage in 10mV steps
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue