-
Notifications
You must be signed in to change notification settings - Fork 19
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
Switch device is not working #14
Comments
Also some other changes are needed on switch.py to work after a restart.... for example, the most basic to restore is the dxpin, for example adding a line after line 74 this make the switch to work fine after restart , but maybe some other values are needed too.... |
Also something strange is happening with the delay. uPyEasy is not using the selected delay to check for the switch state. Just one short example:
Note: the lines "Plugins: Scheduling Async processing plugin: 1, Delay: 5" are there for an extra debugging trying to figure it out whats going wrong.... |
Actually, the bug is that it is called at all! It shouldn't call the switch plugin unless the switch is pressed and the lock therefor (lines 180-208) is released... |
To fix it I had to add this on "def init(self) : " at switch.py
self.pincnt =pincnt
self.valuecnt=valuecnt
self.stype=stype
The text was updated successfully, but these errors were encountered: