Slightly improved CoE download expedited request.
--- 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