Skip to content

Commit

Permalink
Merge pull request #516 from deXol/develop
Browse files Browse the repository at this point in the history
Increase init messages delay
  • Loading branch information
limpkin authored Nov 24, 2019
2 parents be6fa6a + b630500 commit 0032b5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/MPDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ void MPDevice::sendInitMessages()
* so TimerJob has no effect, hence sending
* it with a lower timeout.
*/
QTimer::singleShot(INIT_STARTING_DELAY/2, [this]()
QTimer::singleShot(RESET_SEND_DELAY, [this]()
{
if (AppDaemon::isDebugDev())
qDebug() << "Resetting flip bit for BLE";
Expand Down
5 changes: 3 additions & 2 deletions src/MPDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,9 @@ private slots:
EXPORT_IS_BLE_INDEX = 14,
EXPORT_BLE_USER_CATEGORIES_INDEX = 15
};
static constexpr int STATUS_STARTING_DELAY = 500;
static constexpr int INIT_STARTING_DELAY = 300;
static constexpr int RESET_SEND_DELAY = 1000;
static constexpr int INIT_STARTING_DELAY = RESET_SEND_DELAY + 150;
static constexpr int STATUS_STARTING_DELAY = RESET_SEND_DELAY + 500;
};

#endif // MPDEVICE_H

0 comments on commit 0032b5a

Please sign in to comment.