File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ type Flasher interface {
66
66
// https://github.com/arduino-libraries/WiFiNINA/blob/master/examples/Tools/FirmwareUpdater/FirmwareUpdater.ino
67
67
const baudRate = 1000000
68
68
69
- func openSerial (portAddress string ) (serial.Port , error ) {
69
+ func OpenSerial (portAddress string ) (serial.Port , error ) {
70
70
71
71
port , err := serial .Open (portAddress , & serial.Mode {BaudRate : baudRate })
72
72
if err != nil {
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ import (
37
37
38
38
// NewNinaFlasher creates an new instance of NinaFlasher
39
39
func NewNinaFlasher (portAddress string ) (* NinaFlasher , error ) {
40
- port , err := openSerial (portAddress )
40
+ port , err := OpenSerial (portAddress )
41
41
if err != nil {
42
42
logrus .Error (err )
43
43
return nil , err
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ import (
36
36
)
37
37
38
38
func NewWincFlasher (portAddress string ) (* WincFlasher , error ) {
39
- port , err := openSerial (portAddress )
39
+ port , err := OpenSerial (portAddress )
40
40
if err != nil {
41
41
logrus .Error (err )
42
42
return nil , err
You can’t perform that action at this time.
0 commit comments