Hotfix for X12S ADC driver
This commit is contained in:
@@ -115,7 +115,7 @@ static bool adcSingleRead()
|
||||
return true;
|
||||
}
|
||||
|
||||
bool adcRead()
|
||||
bool adcRead() __attribute__((weak))
|
||||
{
|
||||
uint16_t temp[NUM_ANALOGS] = { 0 };
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user