mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 03:43:33 +08:00
Param lib: fix code style
This commit is contained in:
@@ -817,9 +817,11 @@ param_bus_lock(bool lock)
|
|||||||
// we lock like this for Pixracer for now
|
// we lock like this for Pixracer for now
|
||||||
if (lock) {
|
if (lock) {
|
||||||
state = irqsave();
|
state = irqsave();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
irqrestore(state);
|
irqrestore(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1043,11 +1045,13 @@ param_import_internal(int fd, bool mark_saved)
|
|||||||
struct param_import_state state;
|
struct param_import_state state;
|
||||||
|
|
||||||
param_bus_lock(true);
|
param_bus_lock(true);
|
||||||
|
|
||||||
if (bson_decoder_init_file(&decoder, fd, param_import_callback, &state)) {
|
if (bson_decoder_init_file(&decoder, fd, param_import_callback, &state)) {
|
||||||
debug("decoder init failed");
|
debug("decoder init failed");
|
||||||
param_bus_lock(false);
|
param_bus_lock(false);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
param_bus_lock(false);
|
param_bus_lock(false);
|
||||||
|
|
||||||
state.mark_saved = mark_saved;
|
state.mark_saved = mark_saved;
|
||||||
|
|||||||
Reference in New Issue
Block a user