From 3bed1f81ccdbd0e9677c56304464f583975f5caa Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 23 Sep 2024 08:40:55 +0100 Subject: [PATCH] gw read: Do not accumulate flux across retries unless --raw is specified Refs #492 --- src/greaseweazle/tools/read.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/greaseweazle/tools/read.py b/src/greaseweazle/tools/read.py index d471dd2a..97e1e81a 100644 --- a/src/greaseweazle/tools/read.py +++ b/src/greaseweazle/tools/read.py @@ -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