FIX: Send less data for feedback updates

This commit is contained in:
Robert Kossessa
2024-06-06 17:06:34 +02:00
parent b135f62c18
commit fbf76ea6fa

View File

@@ -649,7 +649,10 @@ export const useDeviceStore = defineStore('device', {
JSON.stringify({ JSON.stringify({
profile: this.currentProfileName, profile: this.currentProfileName,
updates: { 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({ JSON.stringify({
profile: this.currentProfileName, profile: this.currentProfileName,
updates: { updates: {
knob: this.currentProfile!.knob knob: this.currentProfile!.knob.map((v) => ({
haptic: { detentStrength: v.haptic.detentStrength },
type: v.type
}))
} }
}) })
) )