summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xtracker-hatire/thread.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tracker-hatire/thread.cpp b/tracker-hatire/thread.cpp
index 5df3a68c..ace4198c 100755
--- a/tracker-hatire/thread.cpp
+++ b/tracker-hatire/thread.cpp
@@ -319,10 +319,8 @@ void hatire_thread::on_serial_read()
QByteArray& hatire_thread::send_data_read_nolock(bool& ret)
{
constexpr int packet_len = 30;
- constexpr int cnt = 4;
- constexpr int len = cnt * packet_len;
- if (data_read.length() < len)
+ if (data_read.length() < packet_len)
{
// we're requesting more than packet length to help resync the stream if needed
ret = false;