parameters: Use px4::atomic_bool instead of px4::atomic<bool>

This enables us to define the actual atomic bool type in px4_platform

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
Jukka Laitinen
2021-05-04 10:09:44 +03:00
committed by Daniel Agar
parent e6658547cf
commit 351f679c2f
+1 -1
View File
@@ -85,7 +85,7 @@ static char *param_user_file = nullptr;
/* autosaving variables */
static hrt_abstime last_autosave_timestamp = 0;
static struct work_s autosave_work {};
static px4::atomic<bool> autosave_scheduled{false};
static px4::atomic_bool autosave_scheduled{false};
static bool autosave_disabled = false;
static constexpr uint16_t param_info_count = sizeof(px4::parameters) / sizeof(param_info_s);