-
-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with some setters #553
Comments
@core-engineering Hello Camille, Thanks for the proposal but you don't to return the
|
@lupaulus Hi Lucas, I agree with you but this behaviour is not consistent with all the setters. For example, the
Just to be a little more specific, please find my code to send to the PLC a
Everything is ok with the Is it possible to have consistancy accross all the setters ? Camille |
i think it could be more pythonic to eliminate the need to supply an empty bytearrays all together, but then we need to make sure nobody needs to set a partial bytearray. |
Hi,
First, I would like to say that this python library is quite usefull to me ! Thanks a lot for the contributors and the maintainer. The original snap7 library is also awesome !
During one dev, I couldn't use the
util.set_dint
and theutil.set_udint
methods properly.After code check, it appears that the
return
statement is missing in someutil.set
methods.Original code :
Working code :
If needed, I can propose a pull request !
Camille
The text was updated successfully, but these errors were encountered: