summaryrefslogtreecommitdiff
path: root/lib/streaming_apply.f90
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2026-10-20 22:35:06 +0100
committerDave Hibberd <hibby@debian.org>2026-10-20 22:35:06 +0100
commit82ebb1ed1af30cee4dfbb1c628431d32885a00e0 (patch)
tree1a1f782d3e576b758be0bc61171574a7cd8f2376 /lib/streaming_apply.f90
parent061658210acb6425517733ea012dda803a7f72a1 (diff)
parent61d684922b0f1c8455cc60eb3d123df058c9e1f5 (diff)
Merge tag 'debian/3.3.0_beta2+dfsg-1' into hibbian/trixie-backports
tagging wsjtx 3.3.0~beta2+dfsg-1
Diffstat (limited to 'lib/streaming_apply.f90')
-rw-r--r--lib/streaming_apply.f9014
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/streaming_apply.f90 b/lib/streaming_apply.f90
index 72feda74..98573ba4 100644
--- a/lib/streaming_apply.f90
+++ b/lib/streaming_apply.f90
@@ -68,6 +68,9 @@ contains
end if
if (in_cfg%depth_set) params%ndepth = in_cfg%depth
if (in_cfg%submode_set) params%nsubmode = in_cfg%submode
+ if ((in_cfg%mode_set.or.in_cfg%submode_set).and..not.in_cfg%min_width_set) then
+ if(params%nmode==4.and.params%nsubmode==0) params%minw=0
+ endif
if (in_cfg%rxfreq_set) then
params%nfqso = in_cfg%rxfreq
params%nftx = in_cfg%rxfreq
@@ -281,7 +284,16 @@ contains
! Per-period UTC. Producer sends a fresh nutc in each
! period's configure frame so streaming_emit_decode can format the time
! field correctly (instead of "000000").
- if (in_cfg%nutc_set) params%nutc = in_cfg%nutc
+ if (in_cfg%nutc_set) then
+ params%nutc = in_cfg%nutc
+ ! Long-period FST4 numeric UTC also accepts legacy HHMM; ISO UTC is always HHMMSS.
+ if ((io_mode.eq.240.or.io_mode.eq.241.or.io_mode.eq.242).and.io_TRperiod.ge.60.and. &
+ params%nutc.le.2359) &
+ params%nutc=100*params%nutc
+ ! Legacy numeric JT4 and Q65 times may be HHMM.
+ if ((io_mode.eq.4.or.io_mode.eq.66).and.io_TRperiod.ge.60.and.params%nutc.le.2359) &
+ params%nutc=100*params%nutc
+ endif
! Phase 8 (RFC v1 §6.3/§4.1): utc (ISO "HH:MM:SS") is a SECOND route to nutc,
! kept alongside the legacy int nutc above. Applied AFTER nutc so utc WINS when
! a frame carries both (the richer ISO form). The apply order encodes the