arm studio build

Dependencies:   libxDot-mbed5

Files at this revision

API Documentation at this revision

Comitter:
alan1974
Date:
Sun Jan 20 15:19:57 2019 +0000
Parent:
15:ed77b752eaa9
Child:
17:74d60177c6b6
Commit message:
fixed problem with no downstream data being received

Changed in this revision

inc/RadioEvent.h Show annotated file Show diff for this revision Revisions of this file
src/main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/inc/RadioEvent.h	Sat Jan 19 14:53:54 2019 +0000
+++ b/inc/RadioEvent.h	Sun Jan 20 15:19:57 2019 +0000
@@ -25,10 +25,11 @@
  
     std::vector<uint8_t> get_downstream_packet() {        
         downstream_packet_received = false;
-        return received_packet; //0x4567;
+        return received_packet; 
     }
  
     bool is_packet_received() {
+        //printf("  ----------------------------downstream_packet_received %d\n\r",downstream_packet_received);                                
         return downstream_packet_received;    
     }
     
@@ -121,6 +122,7 @@
                     received_packet.push_back(info->RxBuffer[i]);
                 }
                 downstream_packet_received = true;
+                //printf("  ----------------------------downstream_packet_received %d\n\r",downstream_packet_received);                                
                 // print RX data as string
                 //std::string rx((const char*)info->RxBuffer, info->RxBufferSize);
                 //printf("Rx data: %s\r\n", rx.c_str());
@@ -128,7 +130,10 @@
                 
             } // if info->RxBufferSize >            
         } //if (flags->Bits.Rx) 
-        else     downstream_packet_received = false;           
+        else {
+                downstream_packet_received = false;           
+                //printf("  ----------------------------NO NO NO downstream_packet_received %d\n\r",downstream_packet_received);                                
+        }        
     }
 };
 
--- a/src/main.cpp	Sat Jan 19 14:53:54 2019 +0000
+++ b/src/main.cpp	Sun Jan 20 15:19:57 2019 +0000
@@ -181,7 +181,7 @@
     dot = mDot::getInstance(&plan); 
     //assert(dot);  
       
-    //dot->setEvents(&events);        
+    dot->setEvents(&events);