Fixed bug in data size check for sysfs reading of sdo entries.
authorFlorian Pose <fp@igh-essen.com>
Fri, 06 Jun 2008 09:12:05 +0000
changeset 961 8aa60dd6cbc7
parent 960 36e460ffbb5e
child 962 ea83a7aab57a
Fixed bug in data size check for sysfs reading of sdo entries.
master/sdo_entry.c
--- a/master/sdo_entry.c	Fri Jun 06 08:12:34 2008 +0000
+++ b/master/sdo_entry.c	Fri Jun 06 09:12:05 2008 +0000
@@ -185,7 +185,7 @@
     off_t off = 0;
     unsigned int i;
 
-    if (request->data_size != entry->bit_length) {
+    if (request->data_size * 8 != entry->bit_length) {
         EC_ERR("Dictionary size of Sdo entry 0x%04X:%02X (%u bit) does not "
                 "match size of uploaded data (%u byte)!\n", entry->sdo->index,
                 entry->subindex, entry->bit_length, request->data_size);