Commit a817bc34 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Solved a bug in the comm_receive function: it returned succes when there was a timeout error.

parent cbc6cc15
......@@ -126,6 +126,8 @@ comm_error comm_receive(TComm *dev,unsigned char *data,unsigned short int *lengt
comm_cancel_dma_receive(dev);
else
comm_cancel_irq_receive(dev);
*length=0;
return error;
}
}
// get the received data
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment