mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-27 14:48:46 -05:00
Fixed the "DF6NM 73 K" bug in message packing.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2787 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
224f887b26
commit
adc5a55962
@ -38,9 +38,9 @@ subroutine packgrid(grid,ng,text)
|
||||
! Now check for extended-range signal reports: -50 to -31, and 0 to +49.
|
||||
10 n=99
|
||||
c1=grid(1:1)
|
||||
read(grid,*,err=20) n
|
||||
read(grid,*,err=20,end=20) n
|
||||
go to 30
|
||||
20 read(grid(2:4),*,err=30) n
|
||||
20 read(grid(2:4),*,err=30,end=30) n
|
||||
30 if(n.ge.-50 .and. n.le.49) then
|
||||
if(c1.eq.'R') then
|
||||
write(grid,1002) n+50
|
||||
|
@ -30,7 +30,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
ui->setupUi(this);
|
||||
|
||||
#ifdef WIN32
|
||||
// freopen("wsjtx.log","w",stderr);
|
||||
freopen("wsjtx.log","w",stderr);
|
||||
#endif
|
||||
on_EraseButton_clicked();
|
||||
ui->labUTC->setStyleSheet( \
|
||||
@ -1189,17 +1189,14 @@ void MainWindow::ba2msg(QByteArray ba, char message[]) //ba2msg()
|
||||
bool eom;
|
||||
eom=false;
|
||||
int iz=ba.length();
|
||||
for(int i=0;i<iz+1; i++) {
|
||||
if((int)ba[i] == 0) {
|
||||
eom=true;
|
||||
}
|
||||
if(eom) {
|
||||
message[i]=32;
|
||||
} else {
|
||||
for(int i=0;i<22; i++) {
|
||||
if(i<iz) {
|
||||
message[i]=ba[i];
|
||||
} else {
|
||||
message[i]=32;
|
||||
}
|
||||
}
|
||||
message[iz]=0;
|
||||
message[22]=0;
|
||||
}
|
||||
|
||||
void MainWindow::on_txFirstCheckBox_stateChanged(int nstate) //TxFirst
|
||||
|
Loading…
Reference in New Issue
Block a user