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.
pull/75/head v3.0.0
Hans-Erik Floryd 2019-07-11 10:07:52 +02:00
parent 9cc583613b
commit f16daf271e
1 changed files with 1 additions and 1 deletions

View File

@ -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);