mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-20 16:56:17 +00:00
LookUp of Next-Hops now more sophisticated
This commit is contained in:
parent
1558b2edf2
commit
980f57f51d
@ -233,8 +233,14 @@ ErrorCode MeshService::sendQueueStatusToPhone(const meshtastic_QueueStatus &qs,
|
||||
|
||||
void MeshService::sendToMesh(meshtastic_MeshPacket *p, RxSource src, bool ccToPhone)
|
||||
{
|
||||
if(config.network.routingAlgorithm == meshtastic_Config_RoutingConfig_FishEyeState && moduleConfig.fish_eye_state_routing.enabled && p->decoded.dest != 0 && p->decoded.dest != NODENUM_BROADCAST){
|
||||
if(config.network.routingAlgorithm == meshtastic_Config_RoutingConfig_FishEyeState && moduleConfig.fish_eye_state_routing.enabled){
|
||||
if(p->decoded.dest != 0 && p->decoded.dest != NODENUM_BROADCAST){
|
||||
p->to = fishEyeStateRoutingModule->getNextHopForID(p->decoded.dest);
|
||||
}else if ((p->decoded.dest == p->to && p->decoded.dest != 0 && p->decoded.dest != NODENUM_BROADCAST) || (p->decoded.dest == 0 && p->to != 0 && p->to != NODENUM_BROADCAST ))
|
||||
{
|
||||
p->decoded.dest = p->to;
|
||||
p->to = fishEyeStateRoutingModule->getNextHopForID(p->decoded.dest);
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t mesh_packet_id = p->id;
|
||||
|
Loading…
Reference in New Issue
Block a user