Repository navigation
Re-read the folder above a change when returning to it - #53
Open
jurgelenas wants to merge 1 commit into
Open
jurgelenas wants to merge 1 commit into
jurgelenas wants to merge 1 commit into
Conversation
After a write or a finished command the tool re-read only that field, its siblings and the parent folder's name. A row one folder up kept its cached value, so a status row on a parent page still showed the old state after a calibration command ran in a subfolder. The session now marks the folder one level above a change as stale and re-reads its value, info and command rows when the user goes back to it. Browsing without changing anything sends no extra reads. The CRSF simulator's receiver gains a Gyro status row and an IMU Calibration subfolder whose command changes it.
Test build for 47ae2dc
|
Contributor
|
Tested the new LUA code with the Gyro.. I don't think that is working correctly. How I test it with the gyro code:
From what I understand, the "Gyro" page should auto-update when going back to it. The progress % shows, but the values remain the same (status). Pressing "Refresh Status" fixes it. |
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.
Reported with the gyro receiver firmware (ExpressLRS/ExpressLRS#3727): the Gyro
page says a calibration is needed, the calibration is run in a subfolder, and on
going back the page still says it is needed until a manual refresh.
After a write or a finished command the tool re-read only that field, its
siblings and the parent folder's name. Rows one folder up kept their cached
values, and going back only popped the navigation stack.
The session now marks the folder one level above a change as stale and re-reads
its value, info and command rows when the user goes back to it. Browsing without
changing anything sends no extra reads.
Only one level is covered. A command two folders below the row it affects, such
as Detect Orientation under IMU Calibration > RX Orientation, still needs a
manual refresh.
The CRSF simulator's receiver gains a Gyro status row and an IMU Calibration
subfolder whose command changes it. Checked in the simulator on TX16S and GX12:
the status updates on going back with three reads, and browsing in and out sends
none. Not yet checked on a receiver running the gyro firmware.