Fix setting a Feedback State Byte

This commit is contained in:
Florian Märkl 2021-01-05 14:41:35 +01:00
commit 0e324a41a0
No known key found for this signature in database
GPG key ID: 125BC8A5A6A1E857

View file

@ -38,7 +38,7 @@ CHIAKI_EXPORT void chiaki_feedback_state_format_v9(uint8_t *buf, ChiakiFeedbackS
CHIAKI_EXPORT void chiaki_feedback_state_format_v12(uint8_t *buf, ChiakiFeedbackState *state) CHIAKI_EXPORT void chiaki_feedback_state_format_v12(uint8_t *buf, ChiakiFeedbackState *state)
{ {
chiaki_feedback_state_format_v9(buf, state); chiaki_feedback_state_format_v9(buf, state);
buf[0x10] = 0x0; buf[0x19] = 0x0;
buf[0x1a] = 0x0; buf[0x1a] = 0x0;
buf[0x1b] = 0x1; // 1 for Shock, 0 for Sense buf[0x1b] = 0x1; // 1 for Shock, 0 for Sense
} }