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:
Raphael Coeffic
2026-05-05 16:44:12 +10:00
committed by GitHub
co-authored by Claude Opus 4.7
parent 0b4412d582
commit 5b5a0b3e1b
6 changed files with 32 additions and 25 deletions
-5
View File
@@ -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];
}