1
0
mirror of https://github.com/sandeepmistry/arduino-LoRa.git synced 2025-04-19 13:02:14 +03:00

Merge pull request #257 from torntrousers/fix-ISR-not-in-IRAM

Fix Crash: ISR not in IRAM when #254
This commit is contained in:
Morgan 'ARR!' Allen 2019-06-12 17:27:16 -07:00 committed by GitHub
commit ea3458133a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,6 +57,12 @@
#define MAX_PKT_LENGTH 255 #define MAX_PKT_LENGTH 255
#ifdef ESP8266 || ESP32
#define ISR_PREFIX ICACHE_RAM_ATTR
#else
#define ISR_PREFIX
#endif
LoRaClass::LoRaClass() : LoRaClass::LoRaClass() :
_spiSettings(LORA_DEFAULT_SPI_FREQUENCY, MSBFIRST, SPI_MODE0), _spiSettings(LORA_DEFAULT_SPI_FREQUENCY, MSBFIRST, SPI_MODE0),
_spi(&LORA_DEFAULT_SPI), _spi(&LORA_DEFAULT_SPI),
@ -678,7 +684,7 @@ uint8_t LoRaClass::singleTransfer(uint8_t address, uint8_t value)
return response; return response;
} }
void LoRaClass::onDio0Rise() ISR_PREFIX void LoRaClass::onDio0Rise()
{ {
LoRa.handleDio0Rise(); LoRa.handleDio0Rise();
} }