Skip to content

Commit 62884d6

Browse files
committed
ff: Fix up attack_length key typo in Envelope struct
The Envelope struct defined an 'attach_length' key instead of the expected 'attack_length'. While the documentation was correct, any passed in 'attack_length' value was being silently dropped. This was discovered when configuring a periodic sinusoidal effect and observing differences in the waveform in comparison to the C API. Signed-off-by: Paul Mundt <paul.mundt@adaptant.io>
1 parent 00c0fa7 commit 62884d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎evdev/ff.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Envelope(ctypes.Structure):
5151
'''
5252

5353
_fields_ = [
54-
('attach_length', _u16),
54+
('attack_length', _u16),
5555
('attack_level', _u16),
5656
('fade_length', _u16),
5757
('fade_level', _u16),

0 commit comments

Comments
 (0)