Merge pull request #756 from einspunktnull/einspunktnull-patch-1

Replace wrong trigger EffectType
This commit is contained in:
Kristian Sloth Lauszus 2022-12-15 21:36:15 +11:00 committed by GitHub
commit 59cc3d287d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -152,7 +152,7 @@ public:
* @param frequency Vibration frequency of the trigger
*/
void setTriggerForceEffect(uint8_t start, bool keep, uint8_t begin_force, uint8_t mid_force, uint8_t end_force, uint8_t frequency) {
data.effectType = EffectType::SectionResitance;
data.effectType = EffectType::EffectEx;
data.EffectEx.startPosition = start;
data.EffectEx.keepEffect = keep;
data.EffectEx.beginForce = begin_force;