LoRA production board
Dependencies: mbed LoRaWAN-lib SX1272Liby
Fork of frdm_LoRa_Connect_Woodstream_Demo_tjm by
Diff: app/main.cpp
- Revision:
- 8:7af52843c8a9
- Parent:
- 6:ee58dcb61940
- Child:
- 9:b70f8b97176a
--- a/app/main.cpp Sun Mar 20 23:36:57 2016 +0000 +++ b/app/main.cpp Mon Mar 21 17:51:35 2016 +0000 @@ -756,7 +756,12 @@ led2 = 1; BoardInit( ); /* set up timers and any other board initialization */ SerialDisplayInit( ); /* draw complete initial screen */ - + // while(1) + // { + // led1 = !led1; + // for(int i=0;i<9000000;i++); +// vt.printf("5"); + // } DeviceState = DEVICE_STATE_INIT; /* set initial state to initilzation */ while( 1 ) @@ -786,12 +791,12 @@ Led3StateChanged = false; SerialDisplayUpdateLedState( 3, AppLedStateOn ); } - if( UplinkStatusUpdated == true ) /* data sent changed update the Uplink display */ + if( UplinkStatusUpdated == true ) /* data sent changed so update the Uplink display */ { UplinkStatusUpdated = false; SerialDisplayUpdateUplink( LoRaMacUplinkStatus.Acked, LoRaMacUplinkStatus.Datarate, LoRaMacUplinkStatus.UplinkCounter, LoRaMacUplinkStatus.Port, LoRaMacUplinkStatus.Buffer, LoRaMacUplinkStatus.BufferSize ); } - if( DownlinkStatusUpdated == true ) /* data sent changed update the Downlink display */ + if( DownlinkStatusUpdated == true ) /* data reveived changed so update the Downlink display */ { DownlinkStatusUpdated = false; SerialDisplayUpdateLedState( 2, Led2State );