Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix ReloadException when in REPL #6168

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
Mar 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion supervisor/shared/reload.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ inline bool autoreload_is_enabled() {
}

void autoreload_trigger() {
if (autoreload_enabled) {
if (autoreload_enabled & !autoreload_suspended) {
last_autoreload_trigger = supervisor_ticks_ms32();
// Guard against the rare time that ticks is 0;
if (last_autoreload_trigger == 0) {
Expand Down
2 changes: 1 addition & 1 deletion supervisor/shared/usb/usb_msc_flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ void tud_msc_write10_complete_cb(uint8_t lun) {
(void)lun;

// This write is complete; initiate an autoreload.
autoreload_trigger();
autoreload_resume(AUTORELOAD_SUSPEND_USB);
autoreload_trigger();
}

// Invoked when received SCSI_CMD_INQUIRY
Expand Down