UPD: Annotate unused function

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

View File

@@ -118,6 +118,9 @@ const { nanoIpc } = window
const messageCallbacks: ((title: string, message: string) => void)[] = []
// Helper function to create an array with a single value at a specific index
// The idea is to save space by only sending the updated value to the device
// The firmware doesn't appear to handle this correctly atm :(
const createUpdateArray = (index: number, value) => {
const arr = Array(index + 1).fill({})
arr[index] = value
@@ -645,7 +648,9 @@ export const useDeviceStore = defineStore('device', {
this.currentDeviceId!,
JSON.stringify({
profile: this.currentProfileName,
updates: { knob: this.currentProfile!.knob }
updates: {
knob: this.currentProfile!.knob
}
})
)
this.setDirtyState(true)
@@ -660,7 +665,9 @@ export const useDeviceStore = defineStore('device', {
this.currentDeviceId!,
JSON.stringify({
profile: this.currentProfileName,
updates: { knob: this.currentProfile!.knob }
updates: {
knob: this.currentProfile!.knob
}
})
)
this.setDirtyState(true)