Rename BOOTSEL to PICOBOOT, disable mass storage in bootsel mode

This commit is contained in:
Ian Gulliver
2026-04-03 17:44:32 +09:00
parent 64953ef985
commit 21ea6c9332
5 changed files with 16 additions and 16 deletions

View File

@@ -40,18 +40,18 @@ func run(buildDir string) error {
return err
}
if dev != "" {
fmt.Printf("Sending BOOTSEL request to %s...\n", dev)
fmt.Printf("Sending PICOBOOT request to %s...\n", dev)
t, err := picoserial.Open(dev)
if err != nil {
return err
}
c := client.New(t, 2*time.Second)
err = c.BOOTSEL()
err = c.PICOBOOT()
c.Close()
if err != nil {
fmt.Fprintf(os.Stderr, "warning: BOOTSEL request failed: %v\n", err)
fmt.Fprintf(os.Stderr, "warning: PICOBOOT request failed: %v\n", err)
} else {
fmt.Println("Device confirmed reboot into BOOTSEL mode.")
fmt.Println("Device confirmed reboot into PICOBOOT mode.")
}
time.Sleep(2 * time.Second)
}