mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-30 11:23:53 +00:00
Fix comments in serial plugin
This commit is contained in:
parent
c54e87f9a2
commit
89b32dd7ee
@ -22,7 +22,7 @@
|
||||
Basic Usage:
|
||||
|
||||
1) Enable the plugin by setting SERIALPLUGIN_ENABLED to 1.
|
||||
2) Set the pins (RXD2 / TXD2) for your preferred RX and TX GPIO pins
|
||||
2) Set the pins (RXD2 / TXD2) for your preferred RX and TX GPIO pins.
|
||||
3) Set SERIALPLUGIN_TIMEOUT to the amount of time to wait before we consider
|
||||
your packet as "done".
|
||||
4) (Optional) In SerialPlugin.h set the port to PortNum_TEXT_MESSAGE_APP if you want to
|
||||
@ -115,12 +115,12 @@ bool SerialPluginRadio::handleReceived(const MeshPacket &mp)
|
||||
// DEBUG_MSG("Received text msg self=0x%0x, from=0x%0x, to=0x%0x, id=%d, msg=%.*s\n", nodeDB.getNodeNum(),
|
||||
// mp.from, mp.to, mp.id, p.payload.size, p.payload.bytes);
|
||||
|
||||
if (mp.from == nodeDB.getNodeNum()) {
|
||||
|
||||
/*
|
||||
* If SERIALPLUGIN_ECHO is true, then echo the packets that are sent out back to the TX
|
||||
* of the serial interface.
|
||||
*/
|
||||
if (mp.from == nodeDB.getNodeNum()) {
|
||||
|
||||
if (SERIALPLUGIN_ECHO) {
|
||||
|
||||
// For some reason, we get the packet back twice when we send out of the radio.
|
||||
|
Loading…
Reference in New Issue
Block a user