bidir comm works

This commit is contained in:
geeksville
2020-02-06 21:26:40 -08:00
parent f2d7215fb3
commit ade30ee1ce
7 changed files with 26 additions and 10 deletions

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