fixed Stuff

This commit is contained in:
J.Schröder 2025-03-12 02:00:16 +01:00 committed by Thomas Göttgens
parent 1484ebd8d4
commit 41caa3d02b
2 changed files with 1 additions and 8 deletions

View File

@ -653,14 +653,6 @@ void Router::handleReceived(meshtastic_MeshPacket *p, RxSource src)
if (!skipHandle) {
MeshModule::callModules(*p, src);
if(config.network.routingAlgorithm == meshtastic_Config_RoutingConfig_FishEyeState && moduleConfig.fish_eye_state_routing.enabled == true && ((isToUs(p) || isBroadcast(p->to)) && p->decoded.dest != 0 && !isBroadcast(p->decoded.dest))){
meshtastic_MeshPacket *copy = allocForSending();
copy->decoded = p->decoded;
copy->to = fishEyeStateRoutingModule->getNextHopForID(copy->decoded.dest);
copy->from = nodeDB->getNodeNum();
service->sendToMesh(copy);
}
#if !MESHTASTIC_EXCLUDE_MQTT
// Mark as pki_encrypted if it is not yet decoded and MQTT encryption is also enabled, hash matches and it's a DM not to
// us (because we would be able to decrypt it)

View File

@ -151,6 +151,7 @@ bool NeighborInfoModule::handleReceivedProtobuf(const meshtastic_MeshPacket &mp,
// If the hopLimit is the same as hopStart, then it is a neighbor
getOrCreateNeighbor(mp.from, mp.from, 0, mp.rx_snr); // Set the broadcast interval to 0, as we don't know it
}
// Note: np can be a Nullptr at this point
if(np && moduleConfig.has_fish_eye_state_routing && moduleConfig.fish_eye_state_routing.enabled && (config.network.routingAlgorithm == meshtastic_Config_RoutingConfig_FishEyeState)){
//meshtastic_NeighborInfo help = *np;
LOG_DEBUG("FSR: go IN");