mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-18 21:40:35 +08:00
Fixed some sitl init bugs.
This commit is contained in:
@@ -111,6 +111,7 @@ private:
|
||||
|
||||
ADCSIM::ADCSIM(uint32_t channels) :
|
||||
VDev("adcsim", ADCSIM0_DEVICE_PATH),
|
||||
_call(),
|
||||
_sample_perf(perf_alloc(PC_ELAPSED, "adc_samples")),
|
||||
_channel_count(0),
|
||||
_samples(nullptr)
|
||||
|
||||
@@ -81,9 +81,7 @@ typedef struct {
|
||||
|
||||
static void *entry_adapter(void *ptr)
|
||||
{
|
||||
pthdata_t *data;
|
||||
data = (pthdata_t *) ptr;
|
||||
|
||||
pthdata_t *data = (pthdata_t *) ptr;
|
||||
data->entry(data->argc, data->argv);
|
||||
free(ptr);
|
||||
PX4_DEBUG("Before px4_task_exit");
|
||||
|
||||
Reference in New Issue
Block a user