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:
Joe Taylor 2012-11-29 19:01:48 +00:00
parent 224f887b26
commit adc5a55962
2 changed files with 8 additions and 11 deletions

View File

@ -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

View File

@ -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