Rename BOOTSEL to PICOBOOT, disable mass storage in bootsel mode
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user