Skip to content

Commit

Permalink
fix(core): fix a debug log printing CF fields that have not been popu…
Browse files Browse the repository at this point in the history
…lated yet
  • Loading branch information
GwnDaan committed Mar 8, 2024
1 parent a093eb9 commit 168b90a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions isobus/src/can_network_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -789,17 +789,17 @@ namespace isobus
(ControlFunction::Type::External == currentActiveControlFunction->get_type()))
{
// This CF matches the filter and is not an internal or already partnered CF
LOG_INFO("[NM]: A partner with name %016llx has claimed address %u on channel %u.",
partner->get_NAME().get_full_name(),
partner->get_address(),
partner->get_can_port());

// Populate the partner's data
partner->address = currentActiveControlFunction->get_address();
partner->controlFunctionNAME = currentActiveControlFunction->get_NAME();
partner->initialized = true;
controlFunctionTable[partner->get_can_port()][partner->address] = std::shared_ptr<ControlFunction>(partner);
process_control_function_state_change_callback(partner, ControlFunctionState::Online);

LOG_INFO("[NM]: A partner with name %016llx has claimed address %u on channel %u.",
partner->get_NAME().get_full_name(),
partner->get_address(),
partner->get_can_port());
break;
}
}
Expand Down

0 comments on commit 168b90a

Please sign in to comment.