Skip to content

Commit

Permalink
Merge pull request #131 from nasa-jpl/dloret-fix-sdo-indexing
Browse files Browse the repository at this point in the history
Fixes indexing issue when processing SDO responses
  • Loading branch information
d-loret authored Nov 7, 2023
2 parents 09350d1 + 4b6a456 commit d3b88aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ bool fastcat::Manager::Process(double external_time)
SdoResponse entry;
for (auto it = jsd_map_.begin(); it != jsd_map_.end(); ++it) {
while (jsd_sdo_pop_response_queue(it->second, &entry.response)) {
if (entry.response.slave_id < *(it->second->ecx_context.slavecount)) {
if (entry.response.slave_id <= *(it->second->ecx_context.slavecount)) {
entry.device_name =
it->second->slave_configs[entry.response.slave_id].name;
} else {
Expand Down

0 comments on commit d3b88aa

Please sign in to comment.