* Use pwrCheck() as primary control point for shutdown, centralizes thread control in simpgmspace module;
* Remove main_thread_running in favor of separate variables for startup mode and shutdown flag;
* Don't start a thread for ARM startup, just run simuMain() directly (the thread just exits anyway);
* Refactor SIMU_SLEEP() macro, and remove all unnecessary uses of it, also remove SIMU_SLEEP_NORET;
* Add startType param to opentxStart() to control splash and startup checks;
* Fixes backlight never turning off in simulator with "SWITCH" power button type (pwrPressed() was always true);
* Fixes simu shutdown when model checklist is displayed at startup;
* Adds stubs to possibly simulate a "soft" power button in the future.
* Implement model note view without menu handler. Use it before pulse starts
* Also at model change. Handle wd reset and start pulses after mixer
* Fix Horus compile
* Fix Horus crash
* Fix coding style issue
* add receiver number check for Horus
* find the first free model ID on LONG ENTER
* use the next free model ID for new models
* improve free model ID support for std LCD as well
* fixed “duplicate model”
* fixed ModelsList::isModelIdUnique()
When an "Adjust GV" special function is reusing trim buttons to increase/decrease GVs, then the trim limits are applied instead of GV limits. This patch applies the GV limits.
* Save 128 byte by moving variable to stack
* Make usb mass storage buffer smaller on F2 processors and put into reuseablebuffer
- Lower USB mass storage buffer to 512 bytes per default on F2
targets, makes usb speed slightly slower ~600 kB/s instead ~700 KB/s
in my tests, saving 3584 bytes
- Save another ~300 bytes by putting that buffer into reusableBuffer
* Don't put id into reusuableBuffer
All uses of id can be on the stack as well. Makes no difference for ram usage but makes it safer to reuse reusableBuffer
* Only link cdc serial when needed
We always linked usb cdc even in non debug builds. CDC uses about ~600 byte of RAM for its buffers and structures.