diff options
| author | hibby <d@vehibberd.com> | 2026-10-06 21:24:40 +0100 |
|---|---|---|
| committer | hibby <d@vehibberd.com> | 2026-10-06 21:24:40 +0100 |
| commit | c25cbdf6fb6d946175f4335fab77bfea601b56db (patch) | |
| tree | 6f7a94b7b81f999e434f61b73d47e337dfd26bf2 /lib/stdmsg.f90 | |
| parent | 71f5689252c9f13e70e1c24856904475b2307809 (diff) | |
| parent | 0685fcada9f95fe90f70b387cd7d757da8209624 (diff) | |
Merge tag 'debian/3.2.0_rc1+dfsg-2' into debian/trixie-backportsdebian/trixie-backports
tagging wsjtx 3.2.0~rc1+dfsg-2
Diffstat (limited to 'lib/stdmsg.f90')
| -rw-r--r-- | lib/stdmsg.f90 | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/stdmsg.f90 b/lib/stdmsg.f90 index b4f41040..323b3c47 100644 --- a/lib/stdmsg.f90 +++ b/lib/stdmsg.f90 @@ -41,3 +41,37 @@ function stdmsg(msg0) return end function stdmsg + +function stdmsg72(msg0,is_jt65) + + use iso_c_binding, only: c_bool + use packjt, only: packmsg, unpackmsg + + implicit none + + character(len=37), intent(in) :: msg0 + logical(c_bool), intent(in) :: is_jt65 + logical(c_bool) :: stdmsg72 + character(len=22) :: msg72,decoded72 + integer :: dat(12),itype,n + + stdmsg72=.false. + msg72=msg0(1:22) + + if(msg0(23:24).eq.' d' .and. msg72(22:22).eq.'?') msg72(22:22)=' ' + + if(is_jt65) then + n=len_trim(msg72) + if(n.ge.4) then + if(msg72(n-3:n).eq.' OOO') msg72(n-3:)=' ' + endif + endif + + call packmsg(msg72,dat,itype) + if(itype.lt.1 .or. itype.gt.5) return + + call unpackmsg(dat,decoded72) + stdmsg72=(decoded72.eq.msg72) + + return +end function stdmsg72 |
