Add defaults for radio comms

This commit is contained in:
Sassa NF
2024-12-22 14:41:06 +00:00
parent cb4ae1c0d7
commit fe25fc2c60
+11 -1
View File
@@ -356,7 +356,17 @@ LoRaConfig *configureLora(String cfg)
return NULL;
}
LoRaConfig *lora = new LoRaConfig();
LoRaConfig *lora = new LoRaConfig({
freq : 0,
bw : 500,
sf : 7,
cr : 5,
tx_power : 1,
preamble_len : 8,
sync_word : 0x1e,
crc : false,
implicit_header : 0
});
int begin = 0;
int end, i;