diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-09 10:51:32 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-05-09 10:51:32 +0200 |
commit | 2db4accd652a3a156046c373355535247b2ea7aa (patch) | |
tree | a5acf0ed02608ea36e2c0b5cd921bc0500fc2c6e /tracker-hatire/thread.cpp | |
parent | 469371da434e1fcd1cbe51ce8b7e493ea7580a7f (diff) |
tracker/hatire: remove min length check duplication
The api callee already takes care of that so remove the "ok" argument.
Diffstat (limited to 'tracker-hatire/thread.cpp')
-rwxr-xr-x | tracker-hatire/thread.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/tracker-hatire/thread.cpp b/tracker-hatire/thread.cpp index dbb146ee..e4ce8044 100755 --- a/tracker-hatire/thread.cpp +++ b/tracker-hatire/thread.cpp @@ -325,17 +325,7 @@ void hatire_thread::on_serial_read() portable::sleep(ms); } -QByteArray& hatire_thread::send_data_read_nolock(bool& ret) +QByteArray& hatire_thread::send_data_read_nolock() { - constexpr int packet_len = 30; - - if (data_read.length() < packet_len) - { - // we're requesting more than packet length to help resync the stream if needed - ret = false; - } - else - ret = true; - return data_read; } |