removed check if received bit string is smaller than max bit size because some devices send empty bit strings

pull/3/head
Stefan Feuerhahn 8 years ago
parent f45bdbaae5
commit 1da32db3d8

@ -80,10 +80,6 @@ abstract public class BdaBitString extends BasicDataAttribute {
throw new ServiceError(ServiceError.TYPE_CONFLICT, objectReference
+ ": bit_string is bigger than type's size: " + data.getBitString().numBits + ">" + maxNumBits);
}
if (data.getBitString().numBits < maxNumBits) {
throw new ServiceError(ServiceError.TYPE_CONFLICT, objectReference
+ ": bit_string is smaller than type's size: " + data.getBitString().numBits + "<" + maxNumBits);
}
value = data.getBitString().value;
}

Loading…
Cancel
Save