- Timestamp:
- Apr 13, 2015, 12:43:07 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncgetthread.cpp
r6770 r6773 828 828 if (_serialPort) { 829 829 830 if (_nmea == "yes" && _serialNMEA == MANUAL_NMEA) { 831 if (_manualNMEASampl) { 832 int dt = _lastManualNMEA.secsTo(QDateTime::currentDateTime()); 833 if (dt && (fmod(double(dt), double(_manualNMEASampl)) == 0.0)) { 834 _query->sendNMEA(_manualNMEAString); 835 _lastManualNMEA = QDateTime::currentDateTime(); 836 } 837 } 838 } 839 830 840 int nb = _serialPort->bytesAvailable(); 831 832 841 if (nb > 0) { 833 842 QByteArray data = _serialPort->read(nb); … … 847 856 } 848 857 849 if (_nmea == "yes" && _serialNMEA == MANUAL_NMEA) {850 if (_manualNMEASampl) {851 int dt = _lastManualNMEA.secsTo(QDateTime::currentDateTime());852 if (dt && (fmod(double(dt), double(_manualNMEASampl)) == 0.0)) {853 _query->sendNMEA(_manualNMEAString);854 _lastManualNMEA = QDateTime::currentDateTime();855 }856 }857 }858 859 858 if (_serialOutFile) { 860 859 _serialOutFile->write(data);
Note:
See TracChangeset
for help on using the changeset viewer.