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: Get_IMD/IMD.cpp
- Revision:
- 12:e0adb697fcdb
- Parent:
- 8:ecf68db484af
--- a/Get_IMD/IMD.cpp Sun Oct 19 22:50:30 2014 +0000
+++ b/Get_IMD/IMD.cpp Tue Oct 21 23:44:15 2014 +0000
@@ -35,7 +35,7 @@
*/
void update_IMD(void const *arg){
IMD *instance = (IMD *)arg;
- char data[4] = {0};
+ char data[1] = {0};
while(1){
float freq = instance->frequency();
float duty = instance->duty();
@@ -56,7 +56,7 @@
data[0] = 6;
}
- CANMessage txMessage(TX_IMD_ID, data, 4);
+ CANMessage txMessage(TX_IMD_ID, data, 1);
tx_IMD_Buffer->txWrite(txMessage);
Thread::wait(100); //10 Hz update
