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/qra/q65/q65code.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/qra/q65/q65code.f90')
| -rw-r--r-- | lib/qra/q65/q65code.f90 | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/qra/q65/q65code.f90 b/lib/qra/q65/q65code.f90 index d61cba91..f4a94d00 100644 --- a/lib/qra/q65/q65code.f90 +++ b/lib/qra/q65/q65code.f90 @@ -2,9 +2,11 @@ program q65code use q65_encoding implicit none - character*37 msg37 + character*37 msg37,msgsent integer nargs integer codeword(65),tones(85) + integer iargc + logical success nargs=iargc() if(nargs .ne. 1) then @@ -13,8 +15,13 @@ program q65code endif call getarg(1,msg37) - call get_q65_tones(msg37,codeword,tones) + call get_q65_tones(msg37,codeword,tones,msgsent,success) + if(.not.success) then + print*,'Cannot encode message: ',trim(msg37) + stop 1 + endif + write(*,*) 'Message sent: ',trim(msgsent) write(*,*) 'Generated message plus CRC (90 bits)' write(*,'(a8,15i4)') '6 bit : ',codeword(1:15) write(*,'(a8,15b6.6)') 'binary: ',codeword(1:15) |
