Skip to content

Conversation

@willmmiles
Copy link
Member

Another missing remnant of the end-oappend work: migrating usermods to use F() instead of F_STR() so as to pass the FlashStringHelper type along to the print() layer. Usermods calling oappend(F_STR("") on ESP8266 will crash without the shim in #4222. This could be considered an alternative fix: correct the source, rather than provide a workaround at a runtime cost.

Since oappend() is now strongly typed, pass the correct type.  This is a
step towards removing the extra shim logic on ESP8266.
@blazoncek
Copy link
Collaborator

IMO both are good. The other one will prevent misuse in the future.

Copy link
Collaborator

@blazoncek blazoncek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Has a go from my side.

@softhack007
Copy link
Member

Thanks 👍 should be merged as it's a critical bugfix for 8266.

@willmmiles willmmiles merged commit c81ef26 into wled:0_15 Oct 24, 2024
20 checks passed
@willmmiles willmmiles deleted the f-string-hygiene branch October 24, 2024 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants