mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-27 18:31:37 +00:00
Remove my code that doesn't work with channels
This commit is contained in:
parent
471c06b169
commit
f6f586decb
@ -486,7 +486,6 @@ void NodeDB::updateUser(uint32_t nodeId, const User &p)
|
|||||||
/// we updateGUI and updateGUIforNode if we think our this change is big enough for a redraw
|
/// we updateGUI and updateGUIforNode if we think our this change is big enough for a redraw
|
||||||
void NodeDB::updateFrom(const MeshPacket &mp)
|
void NodeDB::updateFrom(const MeshPacket &mp)
|
||||||
{
|
{
|
||||||
uint32_t sawSecAgo = 0;
|
|
||||||
|
|
||||||
if (mp.which_payloadVariant == MeshPacket_decoded_tag) {
|
if (mp.which_payloadVariant == MeshPacket_decoded_tag) {
|
||||||
DEBUG_MSG("Update DB node 0x%x, rx_time=%u\n", mp.from, mp.rx_time);
|
DEBUG_MSG("Update DB node 0x%x, rx_time=%u\n", mp.from, mp.rx_time);
|
||||||
@ -501,18 +500,6 @@ void NodeDB::updateFrom(const MeshPacket &mp)
|
|||||||
info->position.time = mp.rx_time;
|
info->position.time = mp.rx_time;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Used by the store & forward plugin.
|
|
||||||
#ifndef NO_ESP32
|
|
||||||
|
|
||||||
// Check that both the plugin is
|
|
||||||
if (radioConfig.preferences.store_forward_plugin_enabled && storeForwardPlugin) {
|
|
||||||
/* Notify the store and forward plugin that we just saw a node.
|
|
||||||
*/
|
|
||||||
storeForwardPlugin.sawNode(getFrom(&mp), sawSecAgo);
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
info->snr = mp.rx_snr; // keep the most recent SNR we received for this node.
|
info->snr = mp.rx_snr; // keep the most recent SNR we received for this node.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user