first draft

Dependencies:   LMiC SX1272Libx mbed

Fork of LoRaWAN-lmic-app by Semtech

Revision:
9:0b63a0a90205
Parent:
8:0137acc9a6cd
Child:
10:497ef83ca19f
diff -r 0137acc9a6cd -r 0b63a0a90205 main.cpp
--- a/main.cpp	Thu Feb 25 15:40:21 2016 +0000
+++ b/main.cpp	Thu Feb 25 21:29:13 2016 +0000
@@ -173,6 +173,7 @@
 
 static void onTxLed( osjob_t* j )
 {
+    led1 = 0;
     debug_val("LED1 = ", 0 );
 }
 
@@ -213,6 +214,7 @@
     LMIC_setTxData2( LORAWAN_APP_PORT, LMIC.frame, LORAWAN_APP_DATA_SIZE, LORAWAN_CONFIRMED_MSG_ON );
 
     // Blink Tx LED
+    led1 = 1;
     debug_val( "LED1 = ", 1 );
     os_setTimedCallback( &txLedJob, os_getTime( ) + ms2osticks( 25 ), onTxLed );
 }
@@ -272,7 +274,7 @@
 {
     osjob_t initjob;
     
-    led1=0;
+    led1=1;
      pc.baud(115200);
     printf( "\r\nLoRaWan Demo Application TJM\r\n" );
     // initialize runtime env