bidir comm works

This commit is contained in:
geeksville committed 2020-02-06 21:26:40 -08:00
1 parent f2d7215fb3
commit ade30ee1ce
7 files changed
+26 -10

No files matched your search

+1 -2
View File
@@ -63,6 +63,7 @@ bool MeshRadio::init()
// FIXME - can we do this? It seems to be in the Heltec board.
rf95.setTxPower(radioConfig.tx_power, false);
DEBUG_MSG("LoRa radio init OK!\n");
return true;
@@ -77,8 +78,6 @@ ErrorCode MeshRadio::send(MeshPacket *p)
ErrorCode MeshRadio::sendTo(NodeNum dest, const uint8_t *buf, size_t len)
{
DEBUG_MSG("mesh sendTo %d bytes to 0x%x\n", len, dest);
// FIXME - for now we do all packets as broadcast
dest = NODENUM_BROADCAST;
assert(len <= 255); // Make sure we don't overflow the tiny max packet size