Skip to content

Commit

Permalink
优化modem
Browse files Browse the repository at this point in the history
  • Loading branch information
heyuanjie87 committed May 7, 2021
1 parent ede1854 commit 3227e9c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Modem/Modem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Modem::Modem(QWidget *parent) :
ui->setupUi(this);

ym = new Ymodem(this);
connect(ym, SIGNAL(showTransfer()), this, SLOT(showTransfer()));
connect(ym, SIGNAL(showTransfer(int, int, float)), this, SLOT(showTransfer(int, int, float)));
connect(ym, SIGNAL(finished()), this, SLOT(closed()));
}

Expand Down
2 changes: 1 addition & 1 deletion Modem/Modem.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Modem : public QDialog

void setFile(QString &name);
void getFile(QString &name);
void startTransfer(char type = 'x');
void startTransfer(char type = 'y');
void showStatus(const char *s);
void showStatus(QString &s);

Expand Down
3 changes: 3 additions & 0 deletions Modem/Ymodem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@ void Ymodem::run()
msgq_push(mcACK);
}
break;
case mcREQ:
Stage = msFirst;
break;
}
}
break;
Expand Down

0 comments on commit 3227e9c

Please sign in to comment.