mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-20 00:31:09 +00:00
fixed Stuff
This commit is contained in:
parent
1484ebd8d4
commit
41caa3d02b
@ -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)
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user