master/master.c
changeset 66 cab9cc6a2721
parent 64 ea6ccf12c612
child 68 a452700db994
equal deleted inserted replaced
65:80140bace959 66:cab9cc6a2721
   231 
   231 
   232   cmd->index = master->command_index;
   232   cmd->index = master->command_index;
   233   master->command_index = (master->command_index + 1) % 0x0100;
   233   master->command_index = (master->command_index + 1) % 0x0100;
   234 
   234 
   235   if (unlikely(master->debug_level > 0)) {
   235   if (unlikely(master->debug_level > 0)) {
   236     printk(KERN_DEBUG "EtherCAT: Sending command index %i\n", cmd->index);
   236     printk(KERN_DEBUG "EtherCAT: Sending command index 0x%X\n", cmd->index);
   237   }
   237   }
   238 
   238 
   239   cmd->state = EC_COMMAND_STATE_SENT;
   239   cmd->state = EC_COMMAND_STATE_SENT;
   240 
   240 
   241   master->tx_data[2 + 0] = cmd->type;
   241   master->tx_data[2 + 0] = cmd->type;