Skip to content

Commit 6cf35db

Browse files
committed
Fix CAN Interrupt Test (MBED_31)
1 parent 714daff commit 6cf35db

File tree

1 file changed

+2
-2
lines changed
  • libraries/tests/mbed/can_interrupt

1 file changed

+2
-2
lines changed

libraries/tests/mbed/can_interrupt/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ void send() {
2828
void read() {
2929
CANMessage msg;
3030
printf("rx()\n");
31-
if(can1.read(msg)) {
31+
if(can2.read(msg)) {
3232
printmsg("Rx message:", &msg);
3333
led2 = !led2;
3434
}
@@ -37,7 +37,7 @@ void read() {
3737
int main() {
3838
printf("main()\n");
3939
ticker.attach(&send, 1);
40-
can1.attach(&read);
40+
can2.attach(&read);
4141
while(1) {
4242
printf("loop()\n");
4343
wait(1);

0 commit comments

Comments
 (0)