refactor(driver): move 6POS tracker into board-level ADC callback (#7309)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
0b4412d582
commit
5b5a0b3e1b
@@ -242,11 +242,6 @@ void adcCalibStore()
|
||||
uint16_t getAnalogValue(uint8_t index)
|
||||
{
|
||||
if (index >= MAX_ANALOG_INPUTS) return 0;
|
||||
#if defined(SIXPOS_SWITCH_INDEX) && !defined(SIMU)
|
||||
if (index == SIXPOS_SWITCH_INDEX)
|
||||
return getSixPosAnalogValue(adcValues[index]);
|
||||
else
|
||||
#endif
|
||||
return adcValues[index];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user