This is an alternative way to control which channel is active. is saves only the channels that are active in a vector.
Fork of programmingtest by
Communication.cpp
- Committer:
- Jamess
- Date:
- 2016-02-28
- Revision:
- 0:5ab9f1abaf4d
File content as of revision 0:5ab9f1abaf4d:
#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]); } }