lorawan.cpp bugfix "LORA BUSY"

This commit is contained in:
Klaus K Wilting 2018-05-20 21:57:03 +02:00
parent 776795d75b
commit ff024d7abc

View File

@ -113,7 +113,7 @@ void do_send(osjob_t* j){
if (LMIC.opmode & OP_TXRXPEND) { if (LMIC.opmode & OP_TXRXPEND) {
ESP_LOGI(TAG, "OP_TXRXPEND, not sending"); ESP_LOGI(TAG, "OP_TXRXPEND, not sending");
sprintf(display_lmic, "LORA BUSY"); sprintf(display_lmic, "LORA BUSY");
return; goto end;
} }
uint8_t mydata[4]; uint8_t mydata[4];
@ -144,6 +144,7 @@ void do_send(osjob_t* j){
} }
// Schedule next transmission // Schedule next transmission
end:
os_setTimedCallback(&sendjob, os_getTime()+sec2osticks(cfg.sendcycle * 2), do_send); os_setTimedCallback(&sendjob, os_getTime()+sec2osticks(cfg.sendcycle * 2), do_send);
} // do_send() } // do_send()