Is your feature request related to a problem? Please describe.
Device classes contain attributes for each of the register defined in the device definition file. When setting the values in the registers the approach is:
device.register.value = value
If by mistake the developer uses:
device.register = value
the whole register object referred to by the device.register is replaced with the number rendering that register functionality null.
Describe the solution you'd like
It would be nice to have either an error message that will prohibit that or a method to handle the above assignment as an assignment to the value property of the register.
Describe alternatives you've considered
We can leave the code as it is as the framework uses correctly the value property, but this might be a little hard for the new developers using the framework.
Additional context
Add any other context or screenshots about the feature request here.
Is your feature request related to a problem? Please describe. Device classes contain attributes for each of the register defined in the device definition file. When setting the values in the registers the approach is:
device.register.value = value
If by mistake the developer uses:
device.register = value
the whole register object referred to by the
device.register
is replaced with the number rendering that register functionality null.Describe the solution you'd like It would be nice to have either an error message that will prohibit that or a method to handle the above assignment as an assignment to the value property of the register.
Describe alternatives you've considered We can leave the code as it is as the framework uses correctly the
value
property, but this might be a little hard for the new developers using the framework.Additional context Add any other context or screenshots about the feature request here.