Skip to content

Commit b62532e

Browse files
remove nina flasher from codebase
1 parent a18849d commit b62532e

File tree

3 files changed

+0
-465
lines changed

3 files changed

+0
-465
lines changed

cli/certificates/flash.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,8 @@ func flashCertificates(board *firmwareindex.IndexBoard, uploadToolDir *paths.Pat
185185
moduleName := board.Module
186186

187187
// This matches the baudrate used in the FirmwareUpdater.ino sketch
188-
// https://github.com/arduino-libraries/WiFiNINA/blob/master/examples/Tools/FirmwareUpdater/FirmwareUpdater.ino
189188
const baudRate = 1000000
190189
switch moduleName {
191-
case "NINA":
192-
// we use address and not bootloaderPort because the board should not be in bootloader mode
193-
f, err = flasher.NewNinaFlasher(commonFlags.Address, baudRate, 30)
194190
default:
195191
err = fmt.Errorf("unknown module: %s", moduleName)
196192
}

cli/firmware/flash.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,12 +197,8 @@ func updateFirmware(board *firmwareindex.IndexBoard, loaderSketch, moduleName st
197197
var f flasher.Flasher
198198

199199
// This matches the baudrate used in the FirmwareUpdater.ino sketch
200-
// https://github.com/arduino-libraries/WiFiNINA/blob/master/examples/Tools/FirmwareUpdater/FirmwareUpdater.ino
201200
const baudRate = 1000000
202201
switch moduleName {
203-
case "NINA":
204-
// we use address and not bootloaderPort because the board should not be in bootloader mode
205-
f, err = flasher.NewNinaFlasher(commonFlags.Address, baudRate, 30)
206202
default:
207203
err = fmt.Errorf("unknown module: %s", moduleName)
208204
feedback.Fatal(fmt.Sprintf("Error during firmware flashing: %s", err), feedback.ErrGeneric)

0 commit comments

Comments
 (0)