summaryrefslogtreecommitdiffhomepage
path: root/tracker-hatire/thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tracker-hatire/thread.cpp')
-rwxr-xr-xtracker-hatire/thread.cpp12
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;
}