git-svn-id: svn://db.shs.com.ru/pip@705 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -466,5 +466,9 @@ PICout operator <<(PICout s, const PIDateTime & v) {
|
||||
#ifdef WINDOWS
|
||||
void msleep(int msecs) {Sleep(msecs);}
|
||||
#else
|
||||
# ifdef FREERTOS
|
||||
vTaskDelay(msecs / portTICK_PERIOD_MS);
|
||||
# else
|
||||
void msleep(int msecs) {usleep(msecs * 1000);}
|
||||
# endif
|
||||
#endif
|
||||
|
||||
@@ -517,7 +517,7 @@ void PITimer::init() {
|
||||
void PITimer::destroy() {
|
||||
//piCout << "destroy" << this << imp;
|
||||
if (imp == 0) return;
|
||||
//imp->stop(true);
|
||||
//imp->stop(true); ///BUG: WTF FreeRTOS segfault on this!
|
||||
delete imp;
|
||||
imp = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user