cdev_platform: remove unused code (sim_delay)

This commit is contained in:
Beat Küng
2019-01-07 07:15:13 +01:00
committed by Julian Oes
parent ecbe2a3e0b
commit beac53d775

View File

@@ -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);