Use the actual toDeviceStream (#721)
This commit is contained in:
@@ -46,7 +46,7 @@ export class TransportNode implements Types.Transport {
|
|||||||
this._fromDevice = fromDeviceSource.pipeThrough(Utils.fromDeviceStream());
|
this._fromDevice = fromDeviceSource.pipeThrough(Utils.fromDeviceStream());
|
||||||
|
|
||||||
// Stream for data going FROM the application TO the Meshtastic device.
|
// Stream for data going FROM the application TO the Meshtastic device.
|
||||||
const toDeviceTransform = new TransformStream<Uint8Array, Uint8Array>();
|
const toDeviceTransform = Utils.toDeviceStream;
|
||||||
this._toDevice = toDeviceTransform.writable;
|
this._toDevice = toDeviceTransform.writable;
|
||||||
|
|
||||||
// The readable end of the transform is then piped to the Node.js socket.
|
// The readable end of the transform is then piped to the Node.js socket.
|
||||||
|
|||||||
Reference in New Issue
Block a user