mirror of
https://github.com/Genaker/LoraSA.git
synced 2026-08-04 16:03:09 +02:00
Add SCAN_RESULT binary reporting over LoRa
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user