master/slave.c
changeset 175 2e4b18203ade
parent 164 ed85368b2b2e
child 182 8c0bc99229a9
equal deleted inserted replaced
174:99907332ff1e 175:2e4b18203ade
  1057     if (!list_empty(&slave->sdo_dictionary)) {
  1057     if (!list_empty(&slave->sdo_dictionary)) {
  1058         EC_INFO("    SDO-Dictionary:\n");
  1058         EC_INFO("    SDO-Dictionary:\n");
  1059         list_for_each_entry(sdo, &slave->sdo_dictionary, list) {
  1059         list_for_each_entry(sdo, &slave->sdo_dictionary, list) {
  1060             EC_INFO("      0x%04X \"%s\"\n", sdo->index,
  1060             EC_INFO("      0x%04X \"%s\"\n", sdo->index,
  1061                     sdo->name ? sdo->name : "");
  1061                     sdo->name ? sdo->name : "");
  1062             EC_INFO("        Type 0x%04X, features: 0x%02X\n",
  1062             EC_INFO("        Object code: 0x%02X\n", sdo->object_code);
  1063                     sdo->type, sdo->features);
       
  1064             list_for_each_entry(sdo_entry, &sdo->entries, list) {
  1063             list_for_each_entry(sdo_entry, &sdo->entries, list) {
  1065                 EC_INFO("        0x%04X:%i \"%s\", type 0x%04X, %i bits\n",
  1064                 EC_INFO("        0x%04X:%i \"%s\", type 0x%04X, %i bits\n",
  1066                         sdo->index, sdo_entry->subindex,
  1065                         sdo->index, sdo_entry->subindex,
  1067                         sdo_entry->name ? sdo_entry->name : "",
  1066                         sdo_entry->name ? sdo_entry->name : "",
  1068                         sdo_entry->data_type, sdo_entry->bit_length);
  1067                         sdo_entry->data_type, sdo_entry->bit_length);