Skip to content

Commit

Permalink
[misc] fix code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhyde committed Oct 22, 2024
1 parent cd5d3dd commit db6dc7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
8 changes: 1 addition & 7 deletions source/device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
Expand Down
8 changes: 1 addition & 7 deletions source/lib/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit db6dc7d

Please sign in to comment.