Skip to content

Commit

Permalink
Merge pull request #699 from OpenHD/consti-dev
Browse files Browse the repository at this point in the history
adsb only log once
  • Loading branch information
Consti10 authored Apr 30, 2024
2 parents 04a4d1d + eae9c67 commit 9110903
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
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

0 comments on commit 9110903

Please sign in to comment.