mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-24 07:09:48 +08:00
parameters: import tolerate unhanlded BSON types
This commit is contained in:
@@ -261,7 +261,8 @@ param_import_callback(bson_decoder_t decoder, void *priv, bson_node_t node)
|
||||
break;
|
||||
|
||||
default:
|
||||
debug("unrecognised node type");
|
||||
PX4_ERR("%s unrecognised node type %d", node->name, node->type);
|
||||
result = 1; // just skip this entry
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
||||
@@ -1388,7 +1388,8 @@ param_import_callback(bson_decoder_t decoder, void *priv, bson_node_t node)
|
||||
break;
|
||||
|
||||
default:
|
||||
PX4_DEBUG("unrecognised node type");
|
||||
PX4_ERR("%s unrecognised node type %d", node->name, node->type);
|
||||
result = 1; // just skip this entry
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user