SelectedPin Token does not work for above pin 9
agnuca opened this issue · comments
anunez commented
When you use RESTduino and use pin 13, REST format address/13/1 does not work, as strtok extrack the correct '13' token but later only last significant character '3' is use for digitial port output.
Solution:
// select the pin
// int selectedPin = pin[0] -'0'; delete this line
int selectedPin = atoi (pin); // add this line
Serial.println(selectedPin);
Regards,
Agustin
Jason J. Gullickson commented
Thank-you for the tip Agustin, the change has been committed.
Jason J. Gullickson commented
Closing