SX1276GenericLib to support sx1276 bassed LoRa modules, including HopeRF RFM95, Murata CMWX1ZZABZ and Semtech SX1276MB1MAS/SX1276MB1LAS modules
Dependents: DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_PingPong DISCO-L072CZ-LRWAN1_LoRa_USB_Rx ... more
Fork of SX1276Lib by
Diff: sx1276/sx1276-mbed-hal.cpp
- Revision:
- 94:e6c0279f550a
- Parent:
- 90:d98572047c9c
- Child:
- 108:3d7cfa8b8519
diff -r c328629726a6 -r e6c0279f550a sx1276/sx1276-mbed-hal.cpp --- a/sx1276/sx1276-mbed-hal.cpp Tue Oct 24 20:05:16 2017 +0200 +++ b/sx1276/sx1276-mbed-hal.cpp Sun Nov 12 18:23:36 2017 +0100 @@ -170,14 +170,28 @@ { if (_dio0) _dio0->rise(callback(this, static_cast< Trigger > ( irqHandlers[0] ))); + else + irqHandlers[0] = NULL; + if (_dio1) _dio1->rise(callback(this, static_cast< Trigger > ( irqHandlers[1] ))); + else + irqHandlers[1] = NULL; + if (_dio2) _dio2->rise(callback(this, static_cast< Trigger > ( irqHandlers[2] ))); + else + irqHandlers[2] = NULL; + if (_dio3) _dio3->rise(callback(this, static_cast< Trigger > ( irqHandlers[3] ))); + else + irqHandlers[3] = NULL; + if (_dio4) _dio4->rise(callback(this, static_cast< Trigger > ( irqHandlers[4] ))); + else + irqHandlers[4] = NULL; } void SX1276Generic::IoDeInit( void )