Modalai/zorro blue compare - #5
Draft
benjinne wants to merge 59 commits into
Draft
Conversation
benjinne
force-pushed
the
modalai/zorro-blue
branch
from
September 2, 2025 17:59
273904d to
4ca0586
Compare
Yes, and fixed the allignment of that brace!
TODO: fix clock setup
Also changed references to /usr/env/python to /usr/env/python3 so builds work outside of docker better
…efore system_init copies code to ram
… is already set in system_init
… when updating firmwre
…e avoid flash conflict when updating bootloader
…re updates are successful every time
…not getting save when restarting controller too quickly
…joystick hid memcpy
…ccess issue due to RAM_D2 being NOT_CACHEABLE due to MPU. Also enable MPU on RAM_D2 to fix analog sticks/pots calibration issues.
benjinne
force-pushed
the
modalai/zorro-blue
branch
from
September 16, 2025 19:07
e9e0dc8 to
d239e86
Compare
benjinne
force-pushed
the
modalai/zorro-blue
branch
from
October 16, 2025 20:05
2357df6 to
5f5ab68
Compare
Adds short/long RTN press handling in ST_USB state so always-USB-powered devices can reach the firmware flash menu without physically unplugging USB.
Sticky logical switch state was saved to the model file on every state change, even with Persist off. On builds without RTC backup RAM that state is only ever read back when lsPersist is set, so each Lua setStickySwitch() toggle triggered a pointless full model rewrite -- a corruption risk on hardware without a power switch. - only mark the model dirty for sticky LS changes when lsPersist is set (gated to builds without RTC_BACKUP_RAM, preserving upstream EM behavior) - write the model YAML to a .tmp file and rename it over the original, matching the radio settings writer, so an interrupted write cannot truncate the existing model - on model read failure, restore the completed .tmp file if power was lost between unlink and rename
Replace the compile-time DEFAULT_VIEW_TELEMETRY boot behavior with a runtime "Boot menu" option in Radio Setup, stored in radio.yml: - Telem (default): boot to telemetry view, same as before; radios with an older radio.yml keep current behavior since the field zero-inits - Main: boot to the classic EdgeTX main view - Hub: boot directly into /SCRIPTS/TOOLS/Joystick.lua, falling back to the main view if the script is missing or exits The boot mode is applied after storageReadAll() so the setting is loaded before dispatch. The field uses 2 spare bits in RadioData, so struct size and existing radio.yml layout are unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.