From 3ed18c96ee82ce645e82e38e6a74800684b575ab Mon Sep 17 00:00:00 2001 From: Gareth Hancock <64541249+GazHank@users.noreply.github.com> Date: Tue, 20 Jun 2023 17:42:27 +0100 Subject: [PATCH] Add low Latency to PortStatus Signed-off-by: Gareth Hancock <64541249+GazHank@users.noreply.github.com> --- lib/linux.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/linux.ts b/lib/linux.ts index 3466c406..9660a9e5 100644 --- a/lib/linux.ts +++ b/lib/linux.ts @@ -19,10 +19,6 @@ export interface LinuxOpenOptions extends OpenOptions { // * @param {Boolean} [options.lowLatency=false] flag for lowLatency mode on Linux } -export interface LinuxPortStatus extends PortStatus { - lowLatency: boolean -} - export interface LinuxSetOptions extends SetOptions { /** Low latency mode */ lowLatency?: boolean @@ -172,7 +168,7 @@ export class LinuxPortBinding implements BindingPortInterface { await asyncUpdate(this.fd, options) } - async set(options: LinuxSetOptions): Promise { + async set(options: SetOptions): Promise { if (!options || typeof options !== 'object' || Array.isArray(options)) { throw new TypeError('"options" is not an object') @@ -184,7 +180,7 @@ export class LinuxPortBinding implements BindingPortInterface { await asyncSet(this.fd, options) } - async get(): Promise { + async get(): Promise { debug('get') if (!this.isOpen) { throw new Error('Port is not open')