Hotfix for X12S ADC driver

This commit is contained in:
Raphael Coeffic
2021-07-31 18:46:41 +02:00
parent f77d236978
commit 5ba5cb299e
5 changed files with 54 additions and 6 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ static bool adcSingleRead()
return true;
}
bool adcRead()
bool adcRead() __attribute__((weak))
{
uint16_t temp[NUM_ANALOGS] = { 0 };
+4 -2
View File
@@ -52,8 +52,10 @@ struct etx_hal_adc_driver_t {
};
bool adcInit(const etx_hal_adc_driver_t* driver);
//void adcDeInit();
// void adcDeInit();
// Declare adcRead() weak so it can be re-declared
bool adcRead() __attribute__((weak));
bool adcRead();
uint16_t getRTCBatteryVoltage();
uint16_t getAnalogValue(uint8_t index);