From fbf76ea6faa41b78216144f91c4f17d3c78a307d Mon Sep 17 00:00:00 2001 From: Robert Kossessa Date: Thu, 6 Jun 2024 17:06:34 +0200 Subject: [PATCH] FIX: Send less data for feedback updates --- src/renderer/src/deviceStore.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/deviceStore.ts b/src/renderer/src/deviceStore.ts index 1858ff3..2ce3232 100644 --- a/src/renderer/src/deviceStore.ts +++ b/src/renderer/src/deviceStore.ts @@ -649,7 +649,10 @@ export const useDeviceStore = defineStore('device', { JSON.stringify({ profile: this.currentProfileName, updates: { - knob: this.currentProfile!.knob + knob: this.currentProfile!.knob.map((v) => ({ + haptic: { outputRamp: v.haptic.outputRamp }, + type: v.type + })) } }) ) @@ -666,7 +669,10 @@ export const useDeviceStore = defineStore('device', { JSON.stringify({ profile: this.currentProfileName, updates: { - knob: this.currentProfile!.knob + knob: this.currentProfile!.knob.map((v) => ({ + haptic: { detentStrength: v.haptic.detentStrength }, + type: v.type + })) } }) )