LoRa node acquiring analog input and sending to LoRa Server - Working ok

Dependents:   DISCO-L072CZ-LRWAN1_LoRa_node EIoT_LoRa_node_1 EIoT_LoRa_node_2 EIoT_LoRa_node_3

Fork of SX1276GenericLib by Helmut Tschemernjak

Revision:
2:5eb3066446dd
Parent:
1:f979673946c0
Child:
3:ca84be1f3fac
--- a/sx1276/sx1276-hal.cpp	Tue Aug 19 07:10:31 2014 +0000
+++ b/sx1276/sx1276-hal.cpp	Tue Aug 19 08:50:09 2014 +0000
@@ -99,18 +99,20 @@
 //-------------------------------------------------------------------------
 //                      Board relative functions
 //-------------------------------------------------------------------------
-void SX1276MB1xAS::DetectBoardType( void )
+uint8_t SX1276MB1xAS::DetectBoardType( void )
 {
     antSwitch.input( );
     if( antSwitch == 1 )
     {
-        boardConnected = 0x01;
+        boardConnected = SX1276MB1LAS;
     }
     else
     {
-        boardConnected = 0x00;
+        boardConnected = SX1276MB1MAS;
     }
     antSwitch.output( );
+    
+    return ( boardConnected );
 }
 
 void SX1276MB1xAS::IoInit( void )