Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adsb only log once #699

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions app/adsb/adsbvehiclemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,8 +471,11 @@ void ADSBSdr::processReply(QNetworkReply *reply) {
//qDebug() << "MAX adsb distance=" << max_distance;

if (reply->error()) {
qDebug() << "ADSB SDR request error!";
qDebug() << reply->errorString();
if(!m_adsb_reply_error_logged_once){
m_adsb_reply_error_logged_once=true;
qDebug() << "ADSB SDR request error!";
qDebug() << reply->errorString();
}
//TODO REFACTOR MSG
//LocalMessage::instance()->showMessage("ADSB SDR Reply Error", 4);
reply->deleteLater();
Expand Down
1 change: 1 addition & 0 deletions app/adsb/adsbvehiclemanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ private slots:
private:
QString _groundAddress = "";
bool _adsb_show_sdr_data;
bool m_adsb_reply_error_logged_once=false;
};

class ADSBVehicleManager : public QObject {
Expand Down
Loading