new sending kinda works

This commit is contained in:
geeksville
2020-04-30 10:00:40 -07:00
parent fce31560c6
commit 3c3e722181
4 changed files with 6 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ bool SX1262Interface::init()
int res = lora.begin(freq, bw, sf, cr, syncWord, power, currentLimit, preambleLength, tcxoVoltage, useRegulatorLDO);
DEBUG_MSG("LORA init result %d\n", res);
if (res != ERR_NONE)
if (res == ERR_NONE)
res = lora.setCRC(SX126X_LORA_CRC_ON);
return res == ERR_NONE;