We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19b5f15 commit 96a73e6Copy full SHA for 96a73e6
modules/nina/main.go
@@ -111,19 +111,16 @@ func Run(ctx context.Context) {
111
}
112
113
114
- if ctx.BinaryToRestore != "" {
115
- f.Close()
+ f.Close()
116
+ if ctx.BinaryToRestore != "" {
117
log.Println("Restoring previous sketch")
118
if programmer == nil {
119
log.Fatal("ERROR: You must specify a programmer!")
120
121
if err := programmer.Flash(&ctx, ctx.BinaryToRestore); err != nil {
122
log.Fatal(err)
123
124
-
125
- // just to allow cleanup via defer()
126
- // f.port, _ = OpenSerial(ctx.PortName)
127
128
129
0 commit comments