diff options
author | Immanuel Weber <immanuel.weber@gmail.com> | 2012-10-27 12:59:34 +0200 |
---|---|---|
committer | Aaron McCarthy <mccarthy.aaron@gmail.com> | 2013-01-15 12:10:45 +0100 |
commit | 35d8f0f458cbe5461ed6b1bb27d044638d952b0f (patch) | |
tree | b765bc8873ef28c853d54af3fbbba0d6b66e101b /src/3rdparty | |
parent | ac83b242c26d5b8750b6bf0f9ed0bac0e4569b6c (diff) | |
download | qtlocation-35d8f0f458cbe5461ed6b1bb27d044638d952b0f.tar.gz |
positionUpdated signal not emitted
The SerialPort returns (most of the times) only fragments of data when
being asked for a line by readLine(). This is due to fact, that it can
not know if the stream of data will continue and hence it will detect a
end of data. The QIODevice readLine() is specified to return data in
this situation, resulting in incomplete data and therefore incomplete
NMEA sentences, which can not be parsed by parsePosInfoFromNmeaData().
The canReadLine() function, which is used as a barriere in this fix,
only returns true if the available data of the SerialPort contains an
'\n' character. So only full lines will be read and parsed.
Task-number: QTMOBILITY-2054
Change-Id: I72eb1828fa850356322d4951a391ff568d022b78
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Diffstat (limited to 'src/3rdparty')
0 files changed, 0 insertions, 0 deletions