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 26ff376 commit f2c62a9Copy full SHA for f2c62a9
src/mavsdk/core/libmav_receiver.cpp
@@ -338,9 +338,11 @@ std::string LibmavReceiver::libmav_message_to_json(const mav::Message& msg) cons
338
if (variant_opt) {
339
const auto& variant = variant_opt.value();
340
341
- // Convert variant to JSON string using extracted function
+ // Convert variant to JSON string using optimized function
342
std::visit(
343
- [&json_stream](const auto& value) { value_to_json_stream(json_stream, value); },
+ [&json_stream](const auto& value) {
344
+ value_to_json_stream_fast(json_stream, value);
345
+ },
346
variant);
347
} else {
348
// Field not present or failed to extract
0 commit comments