Skip to content

use vol for volume info in lpc176x upload script in windows. #27872

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

Merged
merged 1 commit into from
May 24, 2025

Conversation

ellensp
Copy link
Contributor

@ellensp ellensp commented May 21, 2025

Description

While looking into a issue a user was having on a skr 1.4 controller I noticed a bug in the upload script under windows.

The script looks for either the volume name == REARM or root directory has the file FIRMWARE.CUR to identify the target media for the upload.

The script uses command line "dir" to get a root directory and the volume name.

The issue is when the media is empty, dir returns an error and the script loses the volume name.
So even if the volume name is REARM it is skipped.

Updated the script to use the vol command for the volume information, and use dir command for directory contents.

Requirements

A windows user using a Lpc176x based board

Benefits

Upload script finds the media with the correct volume name, even if the drive is empty

@thinkyhead thinkyhead merged commit 4f93f31 into MarlinFirmware:bugfix-2.1.x May 24, 2025
66 checks passed
@ellensp ellensp deleted the fix-lpc176x-upload branch May 25, 2025 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants