test

Dependents:   LoRaWAN-lmic-app_tjm

Fork of SX1276Lib by Semtech

Revision:
24:54935d8f4b9e
Parent:
23:952530fa968d
Child:
25:856779ac8921
--- a/sx1272/sx1272.cpp	Tue Feb 23 15:34:46 2016 +0000
+++ b/sx1272/sx1272.cpp	Thu Feb 25 15:39:46 2016 +0000
@@ -51,7 +51,7 @@
                 spi( PTD6, PTD7, PTD5 ),
                 nss( PTD4 ),
                 reset( reset ),
-                dio0( dio0 ), dio1( dio1 ), dio2( dio2 ), dio3( dio3 ), dio4( dio4 ), dio5( dio5 ),
+                dio0( PTC2 ), dio1( PTC4 ), dio2( PTC3 ), dio3( PTC1 ), dio4( PTC1 ), dio5( PTC1 ),
                 isRadioActive( false )
 {
     debug("SX1272 constructor\r\n");
@@ -95,7 +95,7 @@
 
 void SX1272::SetChannel( uint32_t freq )
 {
-       debug("SetChannel %d\r\n",freq);
+       debug_val("SetChannel enter ",freq);
    this->settings.Channel = freq;
     freq = ( uint32_t )( ( double )freq / ( double )FREQ_STEP );
     Write( REG_FRFMSB, ( uint8_t )( ( freq >> 16 ) & 0xFF ) );