Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP
Fork of SystemManagement by
Diff: PollSwitch/PollSwitch.cpp
- Revision:
- 12:e0adb697fcdb
- Parent:
- 8:ecf68db484af
- Child:
- 14:8d4959210d4b
- Child:
- 25:900579201439
--- a/PollSwitch/PollSwitch.cpp Sun Oct 19 22:50:30 2014 +0000
+++ b/PollSwitch/PollSwitch.cpp Tue Oct 21 23:44:15 2014 +0000
@@ -47,12 +47,12 @@
}
void update_poll(const void *arg){
- char data[4] = {0};
+ char data[2] = {0};
while(1){
converter.i = poll_switches();
data[0] = converter.ch[0];
data[1] = converter.ch[1];
- CANMessage txMessage(TX_POLL_ID, data, 4);
+ CANMessage txMessage(TX_POLL_ID, data, 2);
tx_Poll_Buffer->txWrite(txMessage);
Thread::wait(100); //10 Hz update
