equal
deleted
inserted
replaced
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; |