mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-18 08:42:37 +00:00
begin moving position stuff into plugin
This commit is contained in:
13
src/plugins/PositionPlugin.cpp
Normal file
13
src/plugins/PositionPlugin.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include "configuration.h"
|
||||
#include "PositionPlugin.h"
|
||||
#include "NodeDB.h"
|
||||
|
||||
PositionPlugin positionPlugin;
|
||||
|
||||
bool PositionPlugin::handleReceived(const MeshPacket &mp)
|
||||
{
|
||||
auto &p = mp.decoded.data;
|
||||
DEBUG_MSG("Received position from=0x%0x, id=%d, msg=%.*s\n", mp.from, mp.id, p.payload.size, p.payload.bytes);
|
||||
|
||||
return false; // Let others look at this message also if they want
|
||||
}
|
||||
Reference in New Issue
Block a user