Skip to content

Commit

Permalink
Merged 'patch to fix parameter streaming'
Browse files Browse the repository at this point in the history
commit 245f49b from upstream
  • Loading branch information
robpneu committed May 26, 2018
1 parent 9e73f8b commit 315574b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/comm_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ class CommManager
void update_status();
void log(CommLink::LogSeverity severity, const char *fmt, ...);

void send_parameter_list();
void send_named_value_float(const char *const name, float value);
};

Expand Down
5 changes: 5 additions & 0 deletions src/comm_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ void CommManager::param_request_list_callback(uint8_t target_system)
send_params_index_ = 0;
}

void CommManager::send_parameter_list()
{
send_params_index_ = 0;
}

void CommManager::param_request_read_callback(uint8_t target_system, const char* const param_name, int16_t param_index)
{
if (target_system == sysid_)
Expand Down
2 changes: 1 addition & 1 deletion src/param.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ bool Params::set_param_float(uint16_t id, float value)
{
params.values[id].fvalue = value;
change_callback(id);
RF_.comm_manager_.send_param_value(id);
RF_.comm_manager_.send_parameter_list();
return true;
}
return false;
Expand Down

0 comments on commit 315574b

Please sign in to comment.