-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pybricks.pupdevices.Light: Fix dcmotor setup.
While setting the direction does not matter for the light, running the setup is still required to make sure settings like max_voltage are configured at least once. Also use user call for setting the voltage instead of the system call in case we ever have more advanced light processes. Like passive motor calls, this will stop the associated process. Partially fixes pybricks/support#1131.
- Loading branch information
1 parent
c087f98
commit ef4ae70
Showing
2 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters