Fix: Improve error message for unloaded lane in AFC_lane.py #567
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.
Major Changes in this PR
This pull request updates the error message in the
cmd_SET_LANE_LOADEDmethod to provide clearer guidance when a lane is not loaded. The new message now includes troubleshooting steps for users.Error message improvement:
cmd_SET_LANE_LOADEDto instruct users to check the LOAD switch configuration and filament detection, and to use theAFC_STATUScommand for switch status.Closes #566
Notes to Code Reviewers
How the changes in this PR are tested
PR Checklist: (Checked-off items are either done or do not apply to this PR)
NOTE: GitHub Copilot may be used for automated code reviews, however as it is an automated system, it's suggestions
may not be correct. Please do not rely on it to catch all issues. Please review any suggestions it makes and use your
own judgement to determine if they are correct.