| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Wow! Awesome work @klutvott123 , thankyou! |
Sorry, something went wrong.
| end | ||
| elseif pageState == pageStatus.editing then | ||
| if event == EVT_VIRTUAL_EXIT or event == EVT_VIRTUAL_ENTER then | ||
| pcall(Page.fields[currentField].postEdit, Page) |
There was a problem hiding this comment.
Why do we need the pcall() here?
Sorry, something went wrong.
There was a problem hiding this comment.
It just prevents the script from crashing if the field doesn't have postEdit.
Could have done this too
if Page.fields[currentField].postEdit then
Page.fields[currentField].postEdit(Page)
end
Sorry, something went wrong.
There was a problem hiding this comment.
I actually think this is a better way, as it is more specific. Otherwise any error that snuck into a postEdit() function could go undetected for a long time, causing debug nightmares.
Sorry, something went wrong.
There was a problem hiding this comment.
Good point! I'll change it
Sorry, something went wrong.
|
Nicely done! |
Sorry, something went wrong.
Adds support for changing rates type.
|
Kudos, SonarCloud Quality Gate passed!
|
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Adds support for changing rates type.
Works like in the configurator. Changes labels, scaling, min, max, and applies default values for the selected rates type.
For testing: betaflight-tx-lua-scripts_1.5.0.zip