From db6dc7d2b0ba5870fbef22bcb3fbccde651fb1b8 Mon Sep 17 00:00:00 2001 From: Jason Hyde Date: Tue, 22 Oct 2024 21:56:00 +0200 Subject: [PATCH] [misc] fix code styling --- source/device.ts | 8 +------- source/lib/sdk.ts | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/source/device.ts b/source/device.ts index e99503b..5295757 100644 --- a/source/device.ts +++ b/source/device.ts @@ -201,13 +201,7 @@ export class Device { // @TODO: get alarm channels from device info const alarmChannels = [0] const alarmValues = [value ? 1 : 0] - const result = sdk.triggerAlarm( - this.userId, - alarmChannels, - alarmValues, - alarmChannels.length, - this.#isAlarmOpen - ) + const result = sdk.triggerAlarm(this.userId, alarmChannels, alarmValues, alarmChannels.length, this.#isAlarmOpen) if (result) { log(`Successfully triggered alarm on device ${this.uuid}`) diff --git a/source/lib/sdk.ts b/source/lib/sdk.ts index 3c57217..6cdbbfd 100644 --- a/source/lib/sdk.ts +++ b/source/lib/sdk.ts @@ -238,13 +238,7 @@ const createSDK = (): SDK => { * @param {boolean} alarmOpen - Alarm open/close state * @returns {boolean} Success status */ - triggerAlarm: getLib().func('NET_SDK_SetDeviceManualAlarm', 'bool', [ - 'long', - 'long *', - 'long *', - 'long', - 'bool' - ]), + triggerAlarm: getLib().func('NET_SDK_SetDeviceManualAlarm', 'bool', ['long', 'long *', 'long *', 'long', 'bool']), /** * Gets device configuration file.