This is an alternative way to control which channel is active. is saves only the channels that are active in a vector.

Dependencies:   mbed

Revision:
0:5ab9f1abaf4d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Communication.cpp	Sun Feb 28 15:54:13 2016 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+#include "Canal.h"
+
+
+void sendActivityState(Serial* serialPort,vector<uint32_t> activeChannel){
+        
+        serialPort->printf("the following channel are active");
+    
+        for(uint32_t count = 0; count<activeChannel.size();count++){
+            
+       
+        serialPort->printf("%d\t",activeChannel[count]);
+        }
+        
+
+
+}
\ No newline at end of file