Skip to content

Commit

Permalink
Enable flashing esp32c3
Browse files Browse the repository at this point in the history
  • Loading branch information
rojer committed Jul 23, 2022
1 parent 4d2161f commit 5668432
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/flash.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,10 @@ func flash(ctx context.Context, devConn dev.DevConn) error {
espFlashOpts.ControlPort = port
espFlashOpts.KeepFS = *flags.KeepFS
err = espFlasher.Flash(esp.ChipESP32, fw, &espFlashOpts)
case "esp32c3":
espFlashOpts.ControlPort = port
espFlashOpts.KeepFS = *flags.KeepFS
err = espFlasher.Flash(esp.ChipESP32C3, fw, &espFlashOpts)
case "esp8266":
espFlashOpts.ControlPort = port
espFlashOpts.KeepFS = *flags.KeepFS
Expand Down

0 comments on commit 5668432

Please sign in to comment.