A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/arduino/arduino-fwuploader/commit/5e2e783122e24396013c18abcbc207bd87ca89ca below:

print progress on stdout only if `--format text` is used (#97) · arduino/arduino-fwuploader@5e2e783 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+1

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+1

-1

lines changed Original file line number Diff line number Diff line change

@@ -228,14 +228,14 @@ func updateFirmware(board *firmwareindex.IndexBoard, loaderSketch, moduleName st

228 228

return err

229 229

}

230 230

defer f.Close()

231 -

f.SetProgressCallback(printProgress)

232 231 233 232

// now flash the actual firmware

234 233

flasherOut := new(bytes.Buffer)

235 234

flasherErr := new(bytes.Buffer)

236 235

if feedback.GetFormat() == feedback.JSON {

237 236

err = f.FlashFirmware(firmwareFile, flasherOut)

238 237

} else {

238 +

f.SetProgressCallback(printProgress)

239 239

err = f.FlashFirmware(firmwareFile, os.Stdout)

240 240

}

241 241

if err != nil {

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4