Slightly improved CoE download expedited request.
authorFlorian Pose <fp@igh-essen.com>
Thu, 07 May 2009 11:41:45 +0000
changeset 1457 ec3ad6641d65
parent 1456 bd1f69a429f3
child 1458 bba02b6a4492
Slightly improved CoE download expedited request.
master/fsm_coe.c
--- a/master/fsm_coe.c	Thu May 07 10:40:38 2009 +0000
+++ b/master/fsm_coe.c	Thu May 07 11:41:45 2009 +0000
@@ -1101,10 +1101,11 @@
 	    EC_WRITE_U16(data + 3, request->index);
 	    EC_WRITE_U8 (data + 5, request->subindex);
 	    memcpy(data + 6, request->data, request->data_size);
+        memset(data + 6 + request->data_size, 0x00, 4 - request->data_size);
 
         if (slave->master->debug_level) {
             EC_DBG("Expedited download request:\n");
-            ec_print_data(data, 10 + request->data_size);
+            ec_print_data(data, 10);
         }
 	}
     else { // request->data_size > 4, use normal transfer type