pzheng 20151201

Dependencies:   LoRaMacLib SX1276Lib mbed Chainable_RGB_LED DigitDisplay

Fork of LoRaWAN by LoRa All

Revision:
18:0ffbe03c5542
Parent:
17:60af095c8763
Child:
19:9ae3b9b57ae0
diff -r 60af095c8763 -r 0ffbe03c5542 main.cpp
--- a/main.cpp	Wed Dec 02 09:46:52 2015 +0000
+++ b/main.cpp	Thu Dec 03 09:03:59 2015 +0000
@@ -173,21 +173,17 @@
  */
 static void PrepareTxFrame( uint8_t port )
 {
-    uint32_t tempValue = (uint32_t)(LightValue*1000000.0);
-    
+    uint32_t tempValue = (uint32_t)(LightValue*1000000.0);    
     debug( "[Tx] LightValue=%d 0x%x\n\r" , tempValue, tempValue);
     
     AppData[0] = LightMode;
     AppData[1] = ((tempValue&0xFF000000)>>24)&0xFF;
     AppData[2] = ((tempValue&0x00FF0000)>>16)&0xFF;
     AppData[3] = ((tempValue&0x0000FF00)>>8)&0xFF;
-    AppData[4] = (tempValue&0x000000FF);
-    
+    AppData[4] = (tempValue&0x000000FF);    
     //commented in 20151130
-    /*counter_preparetxframe_log++;
-    
-    display.write( counter_preparetxframe_log );*/
-    
+    /*counter_preparetxframe_log++;    
+    display.write( counter_preparetxframe_log );*/    
 }
 
 static void ProcessRxFrame( LoRaMacEventFlags_t *flags, LoRaMacEventInfo_t *info )