pcb changes
Fork of SingleFrequencyLora by
Diff: sx1276/sx1276-hal.cpp
- Revision:
- 3:ca84be1f3fac
- Parent:
- 2:5eb3066446dd
- Child:
- 4:f0ce52e94d3f
diff -r 5eb3066446dd -r ca84be1f3fac sx1276/sx1276-hal.cpp --- a/sx1276/sx1276-hal.cpp Tue Aug 19 08:50:09 2014 +0000 +++ b/sx1276/sx1276-hal.cpp Tue Aug 19 09:15:01 2014 +0000 @@ -102,15 +102,19 @@ uint8_t SX1276MB1xAS::DetectBoardType( void ) { antSwitch.input( ); + wait_us( 10 ); if( antSwitch == 1 ) { boardConnected = SX1276MB1LAS; + debug("\r\n >>>>>>>>>>>>>SX1276MB1LAS \r\n" ); } else { boardConnected = SX1276MB1MAS; + debug("\r\n >>>>>>>>>>>>>SX1276MB1MAS \r\n" ); } antSwitch.output( ); + wait_us( 10 ); return ( boardConnected ); } @@ -171,7 +175,7 @@ { if( channel > RF_MID_BAND_THRESH ) { - if( boardConnected == 0x01 ) + if( boardConnected == SX1276MB1LAS ) { return RF_PACONFIG_PASELECT_PABOOST; }