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.
Revision 4:a0557653428b, committed 2011-06-01
- 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;