We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca4db0b commit 093c909Copy full SHA for 093c909
src/mavsdk/core/libmav_receiver.cpp
@@ -339,9 +339,11 @@ std::string LibmavReceiver::libmav_message_to_json(const mav::Message& msg) cons
339
if (variant_opt) {
340
const auto& variant = variant_opt.value();
341
342
- // Convert variant to JSON string using extracted function
+ // Convert variant to JSON string using optimized function
343
std::visit(
344
- [&json_stream](const auto& value) { value_to_json_stream(json_stream, value); },
+ [&json_stream](const auto& value) {
345
+ value_to_json_stream_fast(json_stream, value);
346
+ },
347
variant);
348
} else {
349
// Field not present or failed to extract
0 commit comments