Skip to content

Commit 10071d5

Browse files
committed
Update indexanalogwrite to grab pad rather than pin
1 parent b07e03c commit 10071d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/arduino/sdk/core-implement/CommonAnalog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ int analogReadVSS( void ){
150150
void indexAnalogWrite(pin_size_t index, int val){
151151
// todo: replace with mbed "PwmOut" functionality
152152

153-
pin_size_t pinNumber = pinNumberByIndex(index);
153+
pin_size_t pinNumber = pinNameByIndex(index);
154154
if(pinNumber == (pin_size_t)NC){ return; }
155155
ap3_gpio_pad_t pad = pinNumber;
156156

0 commit comments

Comments
 (0)