Skip to content
Snippets Groups Projects
Commit 0c926106 authored by Julian Oes's avatar Julian Oes Committed by Lorenz Meier
Browse files

param_shmem.c: comment out locking on Snappy

The param locking doesn't seem to be working on Snapdragon, so let's
just comment it out again.
parent 9235c0fd
No related branches found
No related tags found
No related merge requests found
......@@ -165,20 +165,23 @@ static void param_set_used_internal(param_t param);
static param_t param_find_internal(const char *name, bool notification);
static px4_sem_t param_sem; ///< this protects against concurrent access to param_values and param save
// TODO: not working on Snappy just yet
//static px4_sem_t param_sem; ///< this protects against concurrent access to param_values and param save
/** lock the parameter store */
static void
param_lock(void)
{
do {} while (px4_sem_wait(&param_sem) != 0);
// TODO: this doesn't seem to work on Snappy
//do {} while (px4_sem_wait(&param_sem) != 0);
}
/** unlock the parameter store */
static void
param_unlock(void)
{
px4_sem_post(&param_sem);
// TODO: this doesn't seem to work on Snappy
//px4_sem_post(&param_sem);
}
/** assert that the parameter store is locked */
......@@ -191,7 +194,8 @@ param_assert_locked(void)
void
param_init(void)
{
px4_sem_init(&param_sem, 0, 1);
// TODO: not needed on Snappy yet.
// px4_sem_init(&param_sem, 0, 1);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment