Write notice text to UI when drifting automatically

This commit is contained in:
Jordan Sherer 2020-05-06 20:16:29 -04:00
parent e87704f119
commit b21f937481

View File

@ -4939,6 +4939,7 @@ void MainWindow::processDecodedLine(QByteArray t){
int oldDrift = DriftingDateTime::drift();
newDrift = qMin(oldDrift, newDrift) + (qMax(oldDrift, newDrift)-qMin(oldDrift, newDrift))/2;
setDrift(newDrift);
writeNoticeTextToUI(QDateTime::currentDateTimeUtc(), QString("Drift: %1").arg(newDrift));
hasNewDrift = false;
}