We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47abc87 commit 15a14e8Copy full SHA for 15a14e8
cores/arduino/sdk/core-implement/CommonAnalog.cpp
@@ -85,7 +85,7 @@ float getVCCV( void ){
85
86
int indexAnalogRead(pin_size_t index){
87
// todo: replace with mbed "AnalogIn" functionality
88
- pin_size_t pinNumber = pinNumberByIndex(index);
+ pin_size_t pinNumber = pinNameByIndex(index);
89
if(pinNumber == (pin_size_t)NC){ return 0; }
90
ap3_adc_channel_config_t* config = NULL;
91
for(size_t idx = 0; idx < (sizeof(ap3_adc_channel_configs)/sizeof(ap3_adc_channel_config_t)); idx++){
0 commit comments