From e47045c47a53dbe99f913855c4953aada6b6ed3a Mon Sep 17 00:00:00 2001 From: Patrick Moessler Date: Sat, 31 Oct 2020 00:47:40 +0100 Subject: [PATCH] Rename global device state field --- pyiforce.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pyiforce.py b/pyiforce.py index abb7914..2105c0a 100644 --- a/pyiforce.py +++ b/pyiforce.py @@ -12,7 +12,7 @@ class Packet: SET_CONTROL = 0x40 CONTROL = 0x41 - SET_EFFECT_STATE = 0x42 + SET_DEVICE_STATE = 0x42 SET_OVERALL = 0x43 QUERY = 0xFF @@ -23,7 +23,7 @@ class Packet: EFFECT_STATES, SET_CONTROL, CONTROL, - SET_EFFECT_STATE, + SET_DEVICE_STATE, SET_OVERALL, QUERY ] @@ -41,6 +41,10 @@ class ControlType: class OverallControlType: GAIN = 0x00 +class DeviceState: + PAUSE_FFB = 0x08 + ENABLE_FFB = 0x04 + STOP_ALL = 0x01 class Query: # Queries