![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Bigred
Dependencies: BSP_DISCO_L476VG LCD_DISCO_L476VG mbed nRF24L01P
Fork of Final_project_Dom_2TOMS_addChannel123 by
Revision 8:bd2b61bbc45e, committed 2018-04-26
- Comitter:
- dnaples02
- Date:
- Thu Apr 26 20:48:09 2018 +0000
- Parent:
- 7:fed91776683c
- Commit message:
- gfgj
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r fed91776683c -r bd2b61bbc45e main.cpp --- a/main.cpp Tue Apr 24 22:11:09 2018 +0000 +++ b/main.cpp Thu Apr 26 20:48:09 2018 +0000 @@ -78,7 +78,14 @@ // add other power settings else { - pc.printf(" invalid number\n\r"); + pc.printf("received valid number\n\r"); + receivedOutputPowerCharacter = receivedOutputPowerCharacter - NRF24L01P_DATARATE_1_MBPS; + rf_OutputPower = rf_OutputPower + receivedOutputPowerCharacter; + pc.printf("new OutputPower, %d\n\r", rf_OutputPower); + my_nrf24l01p.getAirDataRate(); + wait(1); + pc.printf( "nRF24L01+ OutputPower : %d MHz\r\n", my_nrf24l01p.getAirDataRate() ); + stayInWhile = 0; pc.printf(" invalid number\n\r"); } } wait(1);