-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[IRTX] Use parse argument functions for IR TX command arguments #3404
Conversation
Can you try this test build? |
|
||
StaticJsonDocument<200> docTemp; | ||
DeserializationError error = deserializeJson(docTemp, cmd.substring(cmd.indexOf(',') + 1, cmd.length())); | ||
DeserializationError error = deserializeJson(docTemp, parseStringToEnd(cmd, 2)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cmd.length() is missing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But that's only needed for substring, right?
parseStringToEnd is doing all the magic for you, including stripping matching quotes if present.
It does also convert to lower case.
give me 30 min |
Same behavior. |
Also lines 145 to 149 need your special treatment? |
Added the changes to those functions too. |
Works, thank you. Also the custom_ir build seems broken once more.
|
Yep I noticed. |
@jimmys01 I managed to make a nice work-around for the Just performing a few last tests and if those don't show serious issues, I will merge my PR for this so you can build it all again on Windows. |
@jimmys01 I merged the PR so please let me know if you run into build issues again. Does this PR need anything else or is it now working? |
just to be sure the, command |
quotes are only needed if the parameter contains a character that can be considered a parameter separator, like:
And to make it possible to still use single or double quotes in a parameter, you can chose either of the other quote types to wrap a parameter. So if you only have parameters that don't have a comma or a space, then you don't need to add quotes. |
We are good to go! also the Custom IR builds work again!! Extremely good work, it seemed a really tricky bug to solve. the updated page will be missing the parameters and only hold the first part of the command. just reporting it because i noticed it, nothing really bad comes out of it. |
All caused by this little remark: letscontrolit#3404 (comment)
@jimmys01 |
All caused by this little remark: letscontrolit#3404 (comment)
As mentioned here: #2724 (comment)