master/master.c
changeset 64 ea6ccf12c612
parent 63 0333d8ebfff5
child 66 cab9cc6a2721
equal deleted inserted replaced
63:0333d8ebfff5 64:ea6ccf12c612
   304 {
   304 {
   305   unsigned int length;
   305   unsigned int length;
   306   int ret;
   306   int ret;
   307   unsigned char command_type, command_index;
   307   unsigned char command_type, command_index;
   308 
   308 
   309   if (unlikely((ret = ec_device_receive(&master->device, master->rx_data)) < 0))
   309   if (unlikely((ret = ec_device_receive(&master->device,
       
   310                                         master->rx_data)) < 0))
   310     return -1;
   311     return -1;
   311 
   312 
   312   master->rx_data_length = (unsigned int) ret;
   313   master->rx_data_length = (unsigned int) ret;
   313 
   314 
   314   if (unlikely(master->rx_data_length < 2)) {
   315   if (unlikely(master->rx_data_length < 2)) {