betaflight / betaflight-tx-lua-scripts

Collection of scripts to configure Betaflight from your TX (currently only supported in OpenTx)
GNU General Public License v3.0
604 stars 142 forks source link

CMS move initial screen.clear() to run function #423

Closed klutvott123 closed 2 years ago

klutvott123 commented 2 years ago

Adds a "first run" check to the run function that is used to clear the screen the first time the run function is executed. I initially added this to the init function, but it seems like lua isn't completely in control of the lcd at that point so it's possible for the screen to be cleared only for parts of the tools menu to be drawn on top of that again.