equal
deleted
inserted
replaced
805 pdo_entry->bit_length); |
805 pdo_entry->bit_length); |
806 } |
806 } |
807 } |
807 } |
808 } |
808 } |
809 |
809 |
810 if (!list_empty(&slave->sii_pdos)) |
810 // type-cast to avoid warnings on some compilers |
|
811 if (!list_empty((struct list_head *) &slave->sii_pdos)) |
811 off += sprintf(buffer + off, "\nAvailable PDOs:\n"); |
812 off += sprintf(buffer + off, "\nAvailable PDOs:\n"); |
812 |
813 |
813 list_for_each_entry(pdo, &slave->sii_pdos, list) { |
814 list_for_each_entry(pdo, &slave->sii_pdos, list) { |
814 off += sprintf(buffer + off, " %s 0x%04X \"%s\"", |
815 off += sprintf(buffer + off, " %s 0x%04X \"%s\"", |
815 pdo->type == EC_RX_PDO ? "RXPDO" : "TXPDO", |
816 pdo->type == EC_RX_PDO ? "RXPDO" : "TXPDO", |
826 pdo_entry->name ? pdo_entry->name : "???", |
827 pdo_entry->name ? pdo_entry->name : "???", |
827 pdo_entry->bit_length); |
828 pdo_entry->bit_length); |
828 } |
829 } |
829 } |
830 } |
830 |
831 |
831 if (!list_empty(&slave->sdo_confs)) |
832 // type-cast to avoid warnings on some compilers |
|
833 if (!list_empty((struct list_head *) &slave->sdo_confs)) |
832 off += sprintf(buffer + off, "\nSDO configurations:\n"); |
834 off += sprintf(buffer + off, "\nSDO configurations:\n"); |
833 |
835 |
834 list_for_each_entry(sdodata, &slave->sdo_confs, list) { |
836 list_for_each_entry(sdodata, &slave->sdo_confs, list) { |
835 switch (sdodata->size) { |
837 switch (sdodata->size) { |
836 case 1: sprintf(str, "%i", EC_READ_U8(sdodata->data)); break; |
838 case 1: sprintf(str, "%i", EC_READ_U8(sdodata->data)); break; |