mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
* removed unused Destination class
This commit is contained in:
parent
c44f124616
commit
a05b951018
4 changed files with 4 additions and 58 deletions
|
|
@ -107,10 +107,6 @@ protected:
|
|||
|
||||
void onPeerDataRecv(mesh::Packet* packet, uint8_t type, int sender_idx, uint8_t* data, size_t len) override {
|
||||
if (type == PAYLOAD_TYPE_TXT_MSG && len > 5) {
|
||||
// NOTE: this is a 'first packet wins' impl. When receiving from multiple paths, the first to arrive wins.
|
||||
// For flood mode, the path may not be the 'best' in terms of hops.
|
||||
// FUTURE: could send back multiple paths, using createPathReturn(), and let sender choose which to use(?)
|
||||
|
||||
int i = matching_peer_indexes[sender_idx];
|
||||
if (i < 0 && i >= num_contacts) {
|
||||
MESH_DEBUG_PRINTLN("onPeerDataRecv: Invalid sender idx: %d", i);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue