You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closing as duplicate of #199, which has already been fixed by #200.
@rspierce the reason you are still affected by #199 is because the bug fix was made after the version of arduino/ArduinoCore-API that is in use by the "Raspberry Pi Pico/RP2040" boards platform. You can submit a request for the platform to update its version of arduino/ArduinoCore-API by submitting an issue to the tracker in that repository:
Description
replacing multiple occurrences of a string with a smaller string only works for an odd number of occurrences
Environment
Boards platform name
"Raspberry Pi Pico/RP2040" boards platform from Earle F. Philhower, III
Boards platform version
Original report
Not specified
Last verified with
4.0.3
Code demonstrating problem
Serial monitor output:
Additional information
In this code:
https://github.com/earlephilhower/ArduinoCore-API/blob/ece6e68f29c6f406a4434659bcbcfe558baaa3a9/api/String.cpp#L667-L671
line 669 (
diff = 0 - diff;
) should be above thewhile
loop.The text was updated successfully, but these errors were encountered: