Add SCAN_RESULT binary reporting over LoRa

This commit is contained in:
Sassa NF
2024-12-19 20:42:37 +00:00
parent ae7bef7b3e
commit cb4ae1c0d7
6 changed files with 640 additions and 59 deletions
+13
View File
@@ -10,6 +10,9 @@ Comms *HostComms;
Comms *Comms0 = NULL;
Comms *Comms1 = NULL;
RadioComms *RxComms = NULL;
RadioComms *TxComms = NULL;
void _onReceiveUsb(size_t len)
{
if (HostComms == NULL)
@@ -102,6 +105,16 @@ bool Comms::initComms(Config &c)
Serial.println("Configured none - Initialized no communications on Serial1");
}
if (c.rx_lora != NULL)
{
RxComms = new RadioComms("RxComms", radio, *c.rx_lora);
}
if (c.tx_lora != NULL)
{
TxComms = new RadioComms("TxComms", radio, *c.tx_lora);
}
if (!fine)
{
HostComms = new NoopComms();