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

@@ -78,12 +78,12 @@ func (c *Client) roundTrip(req any) (any, error) {
return c.receive(id)
}
func (c *Client) BOOTSEL() error {
resp, err := c.roundTrip(&RequestBOOTSEL{})
func (c *Client) PICOBOOT() error {
resp, err := c.roundTrip(&RequestPICOBOOT{})
if err != nil {
return err
}
if _, ok := resp.(*ResponseBOOTSEL); !ok {
if _, ok := resp.(*ResponsePICOBOOT); !ok {
return fmt.Errorf("unexpected response: %T", resp)
}
return nil