Skip to content
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

Fix statusbar corruption #175

Merged
merged 4 commits into from
Dec 24, 2024
Merged

Conversation

henrygab
Copy link
Collaborator

Fix #126 - Status Bar Corruption
Each current call from Core 0 to ui_statusbar_update() used the same flags ... UI_UPDATE_ALL.
Therefore, changed this to an inter-core message BP_ICM_FORCE_LCD_UPDATE.

Improved BP_ASSERT_COREx() assertions so that, even in early init, they will print warnings via RTT. This allows early init to ignore these restrictions, but still warns via the debugger in case it causes problems.

Added assertions that RX and TX cores are following rules on which core can add/remove items.

These fixes are an important step to fixing other issues (e.g., #167).

@henrygab henrygab changed the title Better asserts Fix statusbar corruption Dec 24, 2024
@henrygab henrygab merged commit c5aba87 into DangerousPrototypes:main Dec 24, 2024
4 checks passed
@henrygab henrygab deleted the better_asserts branch December 31, 2024 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

status bar corruption - race conditions
1 participant