Add typings and jsdoc comments to improve developer experience
This commit is contained in:
parent
f219b4b2bf
commit
764a3ca223
9 changed files with 765 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
const dbus = require('dbus-next');
|
||||
const crypto = require('crypto');
|
||||
const xor = require('buffer-xor');
|
||||
const EventEmitter = require('events');
|
||||
const { EventEmitter } = require('events');
|
||||
|
||||
const Configuration = require('./Configuration');
|
||||
const constants = require('./constants');
|
||||
|
|
@ -874,7 +874,7 @@ class PlejBLEHandler extends EventEmitter {
|
|||
(pl) => pl.writeInt32LE(Math.trunc(newLocalTimestamp), 5),
|
||||
);
|
||||
try {
|
||||
this.write(payload);
|
||||
this._write(payload);
|
||||
} catch (err) {
|
||||
logger.error(
|
||||
'Failed writing new time to Plejd. Will try again in one hour or at restart.',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue