Repository navigation
Misc - #395
Misc#395
Conversation
|
The fix for #390 is also in here |
|
Can you add the issue numbers to the individual commit messages (or, even better, |
|
Hmmm CI is not happy about fake-sys....will dig some this evening after work |
| # We use poll() to monitor the state of the motor so we can react when | ||
| # the state changes but if you have never read the file, poll() won't | ||
| # block. Read 'state' once so that poll() will block. | ||
| self.state |
There was a problem hiding this comment.
This is only necessary if you are not calling poll in a loop, otherwise the loop does exactly the same thing.
There was a problem hiding this comment.
Seems worth keeping though, it is only one read and if the user does their own thing with POLLPRI they won't get tripped up on this.
There was a problem hiding this comment.
The user will still have to read once themselves so that they know the initial state
There was a problem hiding this comment.
Also, I just realized that polling the state attribute will only work on EV3 (and EVB since they share hardware drivers), but it won't work on any other platform (BrickPi, BrickPi3, PiStorms).
There was a problem hiding this comment.
will back this part out
Any ideas on how to get poll() working on BrickPi, etc?
For this to work Similar to what is done inside Then tests may change the root to point to fake-sys as it is done here: |
|
@ddemidov any idea what is causing the CI failure? |
|
@dwalton76 I think the submodule in this repo currently points to a fork of |
|
@WasabiFan I reverted my fake-sys change and will tackle it via a different PR. Our fake-sys is pointing at https://github.com/rhempel/ev3dev-lang-fake-sys/tree/master which is a fork of https://github.com/ddemidov/ev3dev-lang-fake-sys, we want Denis's. |
No squashing when we merge this PR, will leave these as individual commits. The commit that adds the asserts in the motor class will catch issues like #393