|
|
|
@ -1275,8 +1275,8 @@ param_import_internal(int fd, bool mark_saved)
@@ -1275,8 +1275,8 @@ param_import_internal(int fd, bool mark_saved)
|
|
|
|
|
int result = -1; |
|
|
|
|
|
|
|
|
|
if (bson_decoder_init_file(&decoder, fd, param_import_callback, &state)) { |
|
|
|
|
PX4_ERR("decoder init failed"); |
|
|
|
|
goto out; |
|
|
|
|
PX4_WARN("decoder init failed"); |
|
|
|
|
return -ENODATA; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
state.mark_saved = mark_saved; |
|
|
|
@ -1287,12 +1287,6 @@ param_import_internal(int fd, bool mark_saved)
@@ -1287,12 +1287,6 @@ param_import_internal(int fd, bool mark_saved)
|
|
|
|
|
|
|
|
|
|
} while (result > 0); |
|
|
|
|
|
|
|
|
|
out: |
|
|
|
|
|
|
|
|
|
if (result < 0) { |
|
|
|
|
PX4_ERR("BSON error decoding parameters"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|