Skip to content

Commit

Permalink
Fix CAN Interrupt Test (MBED_31)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewelse committed Aug 6, 2013
1 parent 714daff commit 6cf35db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/tests/mbed/can_interrupt/main.cpp
Expand Up @@ -28,7 +28,7 @@ void send() {
void read() {
CANMessage msg;
printf("rx()\n");
if(can1.read(msg)) {
if(can2.read(msg)) {
printmsg("Rx message:", &msg);
led2 = !led2;
}
Expand All @@ -37,7 +37,7 @@ void read() {
int main() {
printf("main()\n");
ticker.attach(&send, 1);
can1.attach(&read);
can2.attach(&read);
while(1) {
printf("loop()\n");
wait(1);
Expand Down

0 comments on commit 6cf35db

Please sign in to comment.