fixed small Errors originated from the pipeline

This commit is contained in:
J.Schröder 2025-03-22 15:39:21 +01:00
parent abce20f1c8
commit ea87fcc2b5
2 changed files with 6 additions and 3 deletions

View File

@ -658,7 +658,7 @@ void Router::handleReceived(meshtastic_MeshPacket *p, RxSource src)
copy->decoded = p->decoded; copy->decoded = p->decoded;
copy->to = fishEyeStateRoutingModule->getNextHopForID(copy->decoded.dest); copy->to = fishEyeStateRoutingModule->getNextHopForID(copy->decoded.dest);
copy->from = nodeDB->getNodeNum(); copy->from = nodeDB->getNodeNum();
char * logout; char * logout = "";
sprintf(logout, "Forwarding Package to Node %u to Next-Hop %u",p->decoded.dest,copy->to); sprintf(logout, "Forwarding Package to Node %u to Next-Hop %u",p->decoded.dest,copy->to);
LOG_DEBUG(logout); LOG_DEBUG(logout);
service->sendToMesh(copy); service->sendToMesh(copy);

View File

@ -92,7 +92,7 @@ bool FishEyeStateRoutingModule::handleReceivedProtobuf(const meshtastic_MeshPack
LSPDB.insert(std::make_pair(entry.LSP.node_id,entry)); LSPDB.insert(std::make_pair(entry.LSP.node_id,entry));
if(moduleConfig.fish_eye_state_routing.enabled){calcNextHop();} if(moduleConfig.fish_eye_state_routing.enabled){calcNextHop();}
} }
char * logout; char * logout = "";
sprintf(logout, "Received LSP-Pckg of Node %u: ",lsp->node_id); sprintf(logout, "Received LSP-Pckg of Node %u: ",lsp->node_id);
for(int i = 0; i< lsp->neighbors_count; i++){ for(int i = 0; i< lsp->neighbors_count; i++){
sprintf(logout,"%u, ", lsp->neighbors[i].node_id); sprintf(logout,"%u, ", lsp->neighbors[i].node_id);
@ -113,6 +113,9 @@ void FishEyeStateRoutingModule::sendInitialLSP(){
LSPInfo.neighbors_count = neighborhood.size(); LSPInfo.neighbors_count = neighborhood.size();
for(int i = 0; i < neighborhood.size(); i++){ for(int i = 0; i < neighborhood.size(); i++){
meshtastic_Neighbor entry; meshtastic_Neighbor entry;
entry.last_rx_time = 0;
entry.node_broadcast_interval_secs = 0;
entry.snr = 0;
entry.node_id = neighborhood[i].node_id; entry.node_id = neighborhood[i].node_id;
LSPInfo.neighbors[i] = entry; LSPInfo.neighbors[i] = entry;
} }
@ -161,7 +164,7 @@ int32_t FishEyeStateRoutingModule::runOnce(){
p->decoded.portnum = meshtastic_PortNum_FISHEYESTATEROUTING_APP; p->decoded.portnum = meshtastic_PortNum_FISHEYESTATEROUTING_APP;
service->sendToMesh(p,RX_SRC_LOCAL,true); service->sendToMesh(p,RX_SRC_LOCAL,true);
it->second.forwarded = true; it->second.forwarded = true;
char * logout; char * logout = "";
sprintf(logout,"Forwarded LSP-Package of Node %u", it->second.LSP.node_id); sprintf(logout,"Forwarded LSP-Package of Node %u", it->second.LSP.node_id);
LOG_DEBUG(logout); LOG_DEBUG(logout);