From 596dc52ba6b1bf1584d74f82351343b28af16080 Mon Sep 17 00:00:00 2001 From: Georgi Valkov Date: Thu, 9 May 2024 00:46:56 +0200 Subject: [PATCH] Fix example --- docs/tutorial.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/tutorial.rst b/docs/tutorial.rst index 286a493..04ae42f 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -451,9 +451,10 @@ Injecting an FF-event into first FF-capable device found repeat_count = 1 effect_id = dev.upload_effect(effect) dev.write(ecodes.EV_FF, effect_id, repeat_count) - time.sleep(duration_ms) + time.sleep(duration_ms / 1000) dev.erase_effect(effect_id) + Forwarding force-feedback from uinput to a real device ======================================================