Skip to content

Update tutorial.rst (fixed FF example) - #160

Merged
gvalkov merged 1 commit into
gvalkov:masterfrom
martinthedinov:patch-1
Mar 23, 2022
Merged

Update tutorial.rst (fixed FF example)#160
gvalkov merged 1 commit into
gvalkov:masterfrom
martinthedinov:patch-1

Conversation

@martinthedinov

Copy link
Copy Markdown
Contributor

The "Injecting an FF-event into first FF-capable device found" example was slightly broken, with a missing import and a typo on what is now line 450 (previously 449) - should be ecodes.EV_FF and not e.EV_FF. Finally, added a duration_ms of time.sleep(), as otherwise the effect immediately gets erased and doesn't seem to do anything.

The "Injecting an FF-event into first FF-capable device found" example was slightly broken, with a missing import and a typo on what is now line 450 (previously 449) - should be ecodes.EV_FF and not e.EV_FF. Finally, added a duration_ms of time.sleep(), as otherwise the effect immediately gets erased and doesn't seem to do anything.
@gvalkov
gvalkov merged commit 2ff8c7a into gvalkov:master Mar 23, 2022
@gvalkov

gvalkov commented Mar 23, 2022

Copy link
Copy Markdown
Owner

Sorry for the huge delay and thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants