SX1276 library for modtronix inair9. Edited for use with NRF51DK board.

Dependents:   InAir9_PingPong

Fork of SX1276Lib_modtronix by modtronix H

Revision:
22:20db480143c9
Parent:
20:7cf7c08f0088
Child:
25:72381be1b0ce
diff -r d3f64a075f0c -r 20db480143c9 sx1276/sx1276.cpp
--- a/sx1276/sx1276.cpp	Thu Apr 02 12:27:47 2015 +1100
+++ b/sx1276/sx1276.cpp	Wed May 13 10:24:04 2015 +1000
@@ -62,7 +62,7 @@
     this->dioIrq[0] = &SX1276::OnDio0Irq;
     this->dioIrq[1] = &SX1276::OnDio1Irq;
     this->dioIrq[2] = &SX1276::OnDio2Irq;
-    //For SHD3I with inAir9 in imod3, on FRDM-KL25Z board. It uses A4 on FRDM-KL25Z board, which does not have interrupt
+    //For SHD3I with BOARD_INAIR4 in imod3, on FRDM-KL25Z board. It uses A4 on FRDM-KL25Z board, which does not have interrupt
     #if( defined ( TARGET_KL25Z ) && defined(SHIELD_SHD3I_INAIR9) )
     this->dioIrq[3] = NULL;
     #else
@@ -80,6 +80,16 @@
     delete this->dioIrq;
 }
 
+uint8_t SX1276::GetBoardType( void )
+{
+    return boardConnected;
+}
+
+void SX1276::SetBoardType( uint8_t boardType)
+{
+	boardConnected = boardType;
+}
+
 void SX1276::RxChainCalibration( void )
 {
     uint8_t regPaConfigInitVal;