Skip to content

Commit

Permalink
HamlibDrv Rot: Added multiplatform reliable sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
foldynl committed Oct 4, 2024
1 parent 9825493 commit 61790e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ TBC - 0.39.0
- [NEW] - DXC - Added Full-text search
- [NEW] - Select S in RST Edit when focused (issue #454)
- [NEW] - Alerts - Added Member Column
- [CHANGED] - HamlibDrv - Added multiplatform reliable sleep
- [CHANGED] - HamlibDrv Rig/Rot- Added multiplatform reliable sleep
- [CHANGED] - Changed Backup policy
- [CHANGED] - Logbook page size - improved performance
- [CHANGED] - Logbook - CTRL-A (Select All) is disabled
Expand Down
8 changes: 3 additions & 5 deletions rotator/drivers/HamlibRotDrv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,11 +401,9 @@ QString HamlibRotDrv::hamlibErrorString(int errorCode)

void HamlibRotDrv::commandSleep()
{
#ifdef Q_OS_WIN
Sleep(100);
#else
usleep(100000);
#endif
FCT_IDENTIFICATION;

QThread::msleep(100);
}

#undef MUTEXLOCKER
Expand Down

0 comments on commit 61790e9

Please sign in to comment.