This is an alternative way to control which channel is active. is saves only the channels that are active in a vector.
Dependencies: mbed
Communication.cpp
00001 #include "mbed.h" 00002 #include "Canal.h" 00003 00004 00005 void sendActivityState(Serial* serialPort,vector<uint32_t> activeChannel){ 00006 00007 serialPort->printf("the following channel are active"); 00008 00009 for(uint32_t count = 0; count<activeChannel.size();count++){ 00010 00011 00012 serialPort->printf("%d\t",activeChannel[count]); 00013 } 00014 00015 00016 00017 }
Generated on Wed Jul 13 2022 02:59:04 by 1.7.2