mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 10:43:34 +08:00
px4_module: use px4_atomic_t
This commit is contained in:
@@ -92,7 +92,7 @@ int Heater::controller_period(char *argv[])
|
||||
int Heater::custom_command(int argc, char *argv[])
|
||||
{
|
||||
// Check if the driver is running.
|
||||
if (!is_running() && !_object) {
|
||||
if (!is_running()) {
|
||||
PX4_INFO("not running");
|
||||
return PX4_ERROR;
|
||||
}
|
||||
@@ -240,7 +240,7 @@ void Heater::initialize_trampoline(void *argv)
|
||||
return;
|
||||
}
|
||||
|
||||
_object = heater;
|
||||
_object.store(heater);
|
||||
heater->start();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user