px4_module: use px4_atomic_t

This commit is contained in:
Beat Küng
2019-01-30 10:24:06 -05:00
committed by Daniel Agar
parent b6e2ac74de
commit 481bfc6308
9 changed files with 31 additions and 33 deletions
+2 -2
View File
@@ -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();
}