From 758991763882513111443766a22ce18ebc0b5aca Mon Sep 17 00:00:00 2001 From: pmantoine Date: Sat, 8 Apr 2023 14:15:38 +0800 Subject: [PATCH] STM32 ADCee fix --- DCCTimerSTM32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DCCTimerSTM32.cpp b/DCCTimerSTM32.cpp index 83ac99b..de2c235 100644 --- a/DCCTimerSTM32.cpp +++ b/DCCTimerSTM32.cpp @@ -237,7 +237,7 @@ int16_t ADCee::ADCmax() { } int ADCee::init(uint8_t pin) { - uint id = pin - A0; + uint8_t id = pin - A0; int value = 0; PinName stmpin = digitalPin[analogInputPin[id]]; uint32_t stmgpio = stmpin / 16; // 16-bits per GPIO port group on STM32