Fix CAN Interrupt Test (MBED_31)

pull/20/head
Matthew Else 2013-08-06 14:52:04 +01:00
parent 714daff020
commit 6cf35dbcb8
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
@ -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);