mirror of
https://github.com/Genaker/LoraSA.git
synced 2026-08-11 11:22:45 +02:00
Receive a heading from serial (rpi > fc)
This commit is contained in:
@@ -392,6 +392,14 @@ Message *_parsePacket(String p)
|
||||
return m;
|
||||
}
|
||||
|
||||
if (cmd.equalsIgnoreCase("heading"))
|
||||
{
|
||||
Message *m = new Message();
|
||||
m->type = MessageType::HEADING;
|
||||
m->payload.heading.heading = _intParam(p, 0);
|
||||
return m;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user