Skip to content

Commit

Permalink
gw read: Do not accumulate flux across retries unless --raw is specified
Browse files Browse the repository at this point in the history
Refs #492
  • Loading branch information
keirf committed Sep 23, 2024
1 parent e4204ab commit 3bed1f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/greaseweazle/tools/read.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ def read_with_retry(usb: USB.Unit, args, t) -> Tuple[Flux, Optional[HasFlux]]:
if dat.nr_missing() == 0:
break
dat.decode_flux(_flux, pll)
flux.append(_flux)
if args.raw:
flux.append(_flux)
else:
flux = _flux

return flux, dat

Expand Down

0 comments on commit 3bed1f8

Please sign in to comment.