microRTPS: replace usleep() by px4_usleep()

This commit is contained in:
TSC21
2019-01-02 00:14:18 +00:00
committed by Nuno Marques
parent 37e71a4d9d
commit adbec90018
2 changed files with 5 additions and 4 deletions
@@ -123,7 +123,7 @@ void* send(void* /*unused*/)
}
@[end for]@
usleep(_options.sleep_ms*1000);
px4_usleep(_options.sleep_ms*1000);
++loop;
}
@@ -212,7 +212,7 @@ void micrortps_start_topics(struct timespec &begin, int &total_read, uint32_t &r
// loop forever if informed loop number is negative
if (_options.loops >= 0 && loop >= _options.loops) break;
usleep(_options.sleep_ms*1000);
px4_usleep(_options.sleep_ms*1000);
++loop;
}
@[if send_topics]@