diff options
Diffstat (limited to 'client/Client.cpp')
-rw-r--r-- | client/Client.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/client/Client.cpp b/client/Client.cpp index 01c3867..10d288e 100644 --- a/client/Client.cpp +++ b/client/Client.cpp @@ -44,8 +44,7 @@ void Client::timeFunction() QTime time = QTime::currentTime(); qint16 currentSeconds = time.second(); - auto _intervals = intervals; - if(currentSeconds % _intervals==0){ + if((currentSeconds % WS_CLIENT_STATION_POLL_INTERVAL) == 1){ socket->connectToHost(networkAddress, tcpPortAddress); socket->write(msgToSend); |