mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-23 19:20:41 +00:00
17 lines
467 B
C++
17 lines
467 B
C++
#include "WaypointModule.h"
|
|
#include "NodeDB.h"
|
|
#include "PowerFSM.h"
|
|
#include "configuration.h"
|
|
|
|
WaypointModule *waypointModule;
|
|
|
|
ProcessMessage WaypointModule::handleReceived(const MeshPacket &mp)
|
|
{
|
|
auto &p = mp.decoded;
|
|
LOG_INFO("Received waypoint msg from=0x%0x, id=0x%x, msg=%.*s\n", mp.from, mp.id, p.payload.size, p.payload.bytes);
|
|
|
|
notifyObservers(&mp);
|
|
|
|
return ProcessMessage::CONTINUE; // Let others look at this message also if they want
|
|
}
|