Sam Grove / Mbed 2 deprecated canopen_slavenode

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
sam_grove
Date:
Wed Jun 01 15:12:07 2011 +0000
Parent:
2:e0be90742924
Child:
5:cde2a014de38
Commit message:
fixed improper typecast of Message to CANMessage

Changed in this revision

framework/driver/mbed/can_mbed.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/framework/driver/mbed/can_mbed.cpp	Mon May 30 09:56:35 2011 +0000
+++ b/framework/driver/mbed/can_mbed.cpp	Wed Jun 01 15:12:07 2011 +0000
@@ -55,7 +55,7 @@
 ******************************************************************************/
 {
     // convert the message from a CANopen object to a mbed object
-    CANMessage msg(m->cob_id, (uint8_t*)m->data, m->len, static_cast<CANType>(m->rtr), CANStandard);
+    CANMessage msg(m->cob_id, (char*)m->data, m->len, static_cast<CANType>(m->rtr), CANStandard);
     // make sure the message was sent
     if (CANopen.write(msg) == 0){
         return 0;