From 44676f3f7e181b114f3d72bb64b308cc2b2066d0 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 19 Oct 2023 12:03:46 +0100 Subject: [PATCH] MasterTrack: Emit two revolutions of flux SCP image format cannot deal with varying numbers of revolutions. This effectively reverts d40678de70e2cdccab821085d6f4f651bbfbb0b5 Refs #368 --- src/greaseweazle/track.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/greaseweazle/track.py b/src/greaseweazle/track.py index 37929ffe..61e726ba 100644 --- a/src/greaseweazle/track.py +++ b/src/greaseweazle/track.py @@ -274,8 +274,9 @@ def _flux(self, for_writeout, cue_at_index) -> Union[Flux, WriteoutFlux]: # Package up Flux. index_list = [ticks_to_index] - if not splice_at_index: + if not splice_at_index or True: # Emit two revolutions if track data crosses the index. + # UPDATE: Always emit two revolutions, for consistency. flux_list = flux_list + [flux_ticks+flux_list[0]] + flux_list[1:] index_list *= 2 flux = Flux(index_list, flux_list,