mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-05 22:24:47 +08:00
Fix param handling of 32-bit BSON nodes
This commit is contained in:
@@ -600,7 +600,7 @@ param_import_callback(bson_decoder_t decoder, void *private, bson_node_t node)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
switch (node->type) {
|
switch (node->type) {
|
||||||
case BSON_INT:
|
case BSON_INT32:
|
||||||
if (param_type(param) != PARAM_TYPE_INT32) {
|
if (param_type(param) != PARAM_TYPE_INT32) {
|
||||||
debug("unexpected type for '%s", node->name);
|
debug("unexpected type for '%s", node->name);
|
||||||
goto out;
|
goto out;
|
||||||
|
|||||||
Reference in New Issue
Block a user