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.
Diff: CDC.cpp
- Revision:
- 15:82c3cc87bd02
- Parent:
- 14:3f4098e94c29
- Child:
- 16:7bb8b161e00b
--- a/CDC.cpp Sun Jan 31 20:58:42 2016 +0000 +++ b/CDC.cpp Sun Feb 07 18:24:13 2016 +0000 @@ -37,7 +37,6 @@ #define NODE_STATUS_RX 0x6A1 #define STEERING_WHEEL_BUTTONS 0x290 - /** Variables: **/ bool cdc_active = false; // True while our module, the simulated CDC, is active. bool mute = false; @@ -46,7 +45,6 @@ int beep_cmd[] = {0x80,0x04,0x00,0x00,0x00,0x00,0x00,0x00,-1}; int cdc_status_cmd[] = {0xE0,0x00,0x01,0x41,0x01,0x00,0x00,0xD0,-1}; int display_request_cmd[] = {CDC_APL_ADR,0x02,0x05,CDC_SID_FUNCTION_ID,0x00,0x00,0x00,0x00,-1}; -//int display_clear_cmd[] = {CDC_APL_ADR,0x02,0xFF,CDC_SID_FUNCTION_ID,0x00,0x00,0x00,0x00,-1}; /** Com: **/ CAN can(p9, p10); @@ -143,7 +141,7 @@ //Someone else has been granted the display, we need to back down display_request_cmd[2] = 0x05; //message is considered new } - break; + break; } return IBUS_OTHER_MESSAGE; }