Skip to content

Commit

Permalink
Remove cache updating
Browse files Browse the repository at this point in the history
  • Loading branch information
irsdkv authored and JonasVautherin committed Sep 12, 2019
1 parent ee8e25f commit 1405685
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/core/mavlink_parameters.cpp
Expand Up @@ -342,7 +342,6 @@ void MAVLinkParameters::process_param_ext_value(const mavlink_message_t& message
// FIXME: workaround for mismatching type uint8_t which should be uint16_t.
ParamValue correct_type_value;
correct_type_value.set_uint16(static_cast<uint16_t>(value.get_uint8()));
_cache[work->param_name] = correct_type_value;
if (work->get_param_callback) {
work->get_param_callback(
MAVLinkParameters::Result::SUCCESS, correct_type_value);
Expand All @@ -351,7 +350,6 @@ void MAVLinkParameters::process_param_ext_value(const mavlink_message_t& message
// FIXME: workaround for mismatching type uint8_t which should be uint32_t.
ParamValue correct_type_value;
correct_type_value.set_uint32(static_cast<uint32_t>(value.get_uint8()));
_cache[work->param_name] = correct_type_value;
if (work->get_param_callback) {
work->get_param_callback(
MAVLinkParameters::Result::SUCCESS, correct_type_value);
Expand Down

0 comments on commit 1405685

Please sign in to comment.