mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
cdev_platform: remove unused code (sim_delay)
This commit is contained in:
@@ -54,10 +54,6 @@ const cdev::px4_file_operations_t cdev::CDev::fops = {};
|
||||
pthread_mutex_t devmutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
pthread_mutex_t filemutex = PTHREAD_MUTEX_INITIALIZER;
|
||||
|
||||
px4_sem_t lockstep_sem;
|
||||
bool sim_lockstep = false;
|
||||
volatile bool sim_delay = false;
|
||||
|
||||
#define PX4_MAX_FD 350
|
||||
static map<string, void *> devmap;
|
||||
static cdev::file_t filemap[PX4_MAX_FD] = {};
|
||||
@@ -334,10 +330,6 @@ extern "C" {
|
||||
|
||||
#endif
|
||||
|
||||
while (sim_delay) {
|
||||
px4_usleep(100);
|
||||
}
|
||||
|
||||
PX4_DEBUG("Called px4_poll timeout = %d", timeout);
|
||||
|
||||
px4_sem_init(&sem, 0, 0);
|
||||
|
||||
Reference in New Issue
Block a user