Skip to content
Snippets Groups Projects
Commit 00371f3f authored by Florian Pose's avatar Florian Pose
Browse files

Display debug data on mailbox error.

parent 0e5e2791
No related branches found
No related tags found
No related merge requests found
......@@ -179,6 +179,10 @@ uint8_t *ec_slave_mbox_fetch(const ec_slave_t *slave, /**< slave */
uint16_t code = EC_READ_U16(datagram->data + 8);
EC_ERR("Mailbox error response received.\n");
if (slave->master->debug_level)
ec_print_data(datagram->data + 6, data_size);
for (mbox_msg = mbox_error_messages; mbox_msg->code; mbox_msg++) {
if (mbox_msg->code != code) continue;
EC_ERR("Error reply code: 0x%04X: \"%s\".\n",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment