Code cleanups.

This commit is contained in:
Jonathan Naylor
2016-10-18 07:47:37 +01:00
parent db80247ab0
commit f58bf29080
8 changed files with 173 additions and 16 deletions
+3 -7
View File
@@ -22,6 +22,7 @@
#include "DMRLookup.h"
#include "Network.h"
#include "Version.h"
#include "Thread.h"
#include "Speech.h"
#include "Log.h"
@@ -350,13 +351,8 @@ void CP25Gateway::run()
lostTimer.stop();
}
if (ms < 5U) {
#if defined(_WIN32) || defined(_WIN64)
::Sleep(5UL); // 5ms
#else
::usleep(5000); // 5ms
#endif
}
if (ms < 5U)
CThread::sleep(5U);
}
delete speech;