Fix serial outputter. Fix encoder path.
All checks were successful
/ deploy (push) Successful in -2040h37m56s
All checks were successful
/ deploy (push) Successful in -2040h37m56s
This commit is contained in:
parent
777ad5ac80
commit
70faa49450
3 changed files with 9 additions and 8 deletions
|
@ -85,7 +85,6 @@ class SerialManager {
|
|||
if (!local) {
|
||||
this.queue = [firstLine, secondLine]
|
||||
}
|
||||
if (!this.serial.value) return
|
||||
let first = Buffer.from(firstLine)
|
||||
let second = Buffer.from(secondLine)
|
||||
if (first.length > 20) {
|
||||
|
@ -99,11 +98,13 @@ class SerialManager {
|
|||
second = Buffer.concat([second, Buffer.from(new Array(20 - second.length).fill(32))])
|
||||
}
|
||||
|
||||
this.serial.value.write(Buffer.concat([
|
||||
Buffer.from('^'),
|
||||
first,
|
||||
second,
|
||||
]))
|
||||
if (this.serial.value) {
|
||||
this.serial.value.write(Buffer.concat([
|
||||
Buffer.from('^'),
|
||||
first,
|
||||
second,
|
||||
]))
|
||||
}
|
||||
this.currentDisplay.value = {
|
||||
first: this.bufferToString(firstLine).slice(0, 20),
|
||||
second: this.bufferToString(secondLine).slice(0, 20),
|
||||
|
|
|
@ -4,7 +4,7 @@ const client = require('./api/client')
|
|||
const Encoder = {
|
||||
oninit: function(vnode) {
|
||||
this.list_devices = {
|
||||
command: 'D:\\ffmpeg.exe',
|
||||
command: 'ffmpeg.exe',
|
||||
arguments: '-hide_banner -sources decklink',
|
||||
}
|
||||
this.list_formats = {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "church_streamer",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"description": "",
|
||||
"main": "index.mjs",
|
||||
"scripts": {
|
||||
|
|
Loading…
Reference in a new issue