From f16daf271efecbef9f7c677b199758ec8f97717e Mon Sep 17 00:00:00 2001 From: Hans-Erik Floryd Date: Thu, 11 Jul 2019 10:07:52 +0200 Subject: [PATCH] allow setting default lower bits of large values The objd value member is 32 bits; it cannot set the upper bits but could be useful to set the lower bits of values larger than 32 bits. --- soes/esc_coe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soes/esc_coe.c b/soes/esc_coe.c index a9f9bfe..f5d1840 100644 --- a/soes/esc_coe.c +++ b/soes/esc_coe.c @@ -1121,7 +1121,7 @@ void COE_initDefaultValues (void) i = 0; do { - if (objd[i].data != NULL && objd[i].bitlength <= sizeof(objd[i].value)) + if (objd[i].data != NULL) { COE_setValue (&objd[i], objd[i].value); DPRINT ("%04x:%02x = %x\n", SDOobjects[n].index, objd[i].subindex, objd[i].value);