I've resolved the issue with adding code to disable lora interrupts when starting an OTA update
.onStart([]() {
LoRa.end(); //added to stop interrupts disrupting the OTA
detachInterrupt(digitalPinToInterrupt(2)); //added to stop interrupts disrupting the OTA
Might not be the cleanest way to do it
Not a big deal on the Lora code itself
But I would Have expected LoRa.end(); to detach the interrupt pin itself :)
Had issue were OTA update would often crash
This begun happening after enabling interrupt with LoRa.onReceive() LoRa.onTxDone()
Serial trace on the ESP32:
I've resolved the issue with adding code to disable lora interrupts when starting an OTA update
Might not be the cleanest way to do it
Not a big deal on the Lora code itself But I would Have expected LoRa.end(); to detach the interrupt pin itself :)