mirror of
https://github.com/Eugeny/tabby.git
synced 2025-10-04 14:04:56 +00:00
serial fixes
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { BaseSession } from 'terminus-terminal'
|
||||
import { SerialPort } from '@serialport/stream'
|
||||
import { SerialPort } from 'serialport'
|
||||
import { Logger } from 'terminus-core'
|
||||
import { Subject, Observable } from 'rxjs'
|
||||
|
||||
|
@@ -29,7 +29,7 @@
|
||||
.form-group
|
||||
label Baud Rate
|
||||
input.form-control(
|
||||
type='text',
|
||||
type='number',
|
||||
[(ngModel)]='connection.baudrate',
|
||||
)
|
||||
|
||||
|
@@ -1,15 +1,10 @@
|
||||
import { Injectable, NgZone } from '@angular/core'
|
||||
import SerialPort from '@serialport/stream'
|
||||
import SerialPort from 'serialport'
|
||||
import { ToastrService } from 'ngx-toastr'
|
||||
import { AppService, LogService } from 'terminus-core'
|
||||
import { SerialConnection, SerialSession } from '../api'
|
||||
import { SerialTabComponent } from '../components/serialTab.component'
|
||||
|
||||
try {
|
||||
var bindingsNative = require('serialport/bindings/build/Release/bindings.node') // eslint-disable-line @typescript-eslint/no-var-requires, no-var
|
||||
SerialPort.binding = bindingsNative
|
||||
} catch { }
|
||||
|
||||
@Injectable({ providedIn: 'root' })
|
||||
export class SerialService {
|
||||
|
||||
|
Reference in New Issue
Block a user