Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 3d38975

Browse files
committed
Stopping timer while updating values
1 parent e44b2ad commit 3d38975

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

software/src/tsmppt.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -543,13 +543,15 @@ QString Tsmppt::productName() const
543543

544544
void Tsmppt::onTimeout()
545545
{
546+
mTimer->stop();
546547
if (!mInitialized)
547548
{
548-
mTimer->stop();
549549
initialize();
550-
mTimer->start();
551-
return;
552550
}
553-
updateValues();
551+
else
552+
{
553+
updateValues();
554+
}
555+
mTimer->start();
554556
}
555557

0 commit comments

Comments
 (0)