Skip to content

Commit

Permalink
Stopping timer while updating values
Browse files Browse the repository at this point in the history
  • Loading branch information
osaether committed Oct 31, 2018
1 parent e44b2ad commit 3d38975
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions software/src/tsmppt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -543,13 +543,15 @@ QString Tsmppt::productName() const

void Tsmppt::onTimeout()
{
mTimer->stop();
if (!mInitialized)
{
mTimer->stop();
initialize();
mTimer->start();
return;
}
updateValues();
else
{
updateValues();
}
mTimer->start();
}

0 comments on commit 3d38975

Please sign in to comment.