Fix bug with loopback implementation on LPC11c14. Changed 'CANCNTL_LBACK' to 'CANTEST_LBACK' like it is implemented in the C_CAN controller for the LPC1549.

pull/1099/head
dc37 2015-05-11 17:29:13 -07:00
parent 77b4a7bc78
commit cd9ef3902a
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ int can_mode(can_t *obj, CanMode mode) {
break;
case MODE_TEST_SILENT:
LPC_CAN->CNTL |= CANCNTL_TEST;
LPC_CAN->TEST |= (CANCNTL_LBACK | CANTEST_SILENT);
LPC_CAN->TEST |= (CANTEST_LBACK | CANTEST_SILENT);
success = 1;
break;
case MODE_TEST_GLOBAL: