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) {
|
if (!local) {
|
||||||
this.queue = [firstLine, secondLine]
|
this.queue = [firstLine, secondLine]
|
||||||
}
|
}
|
||||||
if (!this.serial.value) return
|
|
||||||
let first = Buffer.from(firstLine)
|
let first = Buffer.from(firstLine)
|
||||||
let second = Buffer.from(secondLine)
|
let second = Buffer.from(secondLine)
|
||||||
if (first.length > 20) {
|
if (first.length > 20) {
|
||||||
|
@ -99,11 +98,13 @@ class SerialManager {
|
||||||
second = Buffer.concat([second, Buffer.from(new Array(20 - second.length).fill(32))])
|
second = Buffer.concat([second, Buffer.from(new Array(20 - second.length).fill(32))])
|
||||||
}
|
}
|
||||||
|
|
||||||
this.serial.value.write(Buffer.concat([
|
if (this.serial.value) {
|
||||||
Buffer.from('^'),
|
this.serial.value.write(Buffer.concat([
|
||||||
first,
|
Buffer.from('^'),
|
||||||
second,
|
first,
|
||||||
]))
|
second,
|
||||||
|
]))
|
||||||
|
}
|
||||||
this.currentDisplay.value = {
|
this.currentDisplay.value = {
|
||||||
first: this.bufferToString(firstLine).slice(0, 20),
|
first: this.bufferToString(firstLine).slice(0, 20),
|
||||||
second: this.bufferToString(secondLine).slice(0, 20),
|
second: this.bufferToString(secondLine).slice(0, 20),
|
||||||
|
|
|
@ -4,7 +4,7 @@ const client = require('./api/client')
|
||||||
const Encoder = {
|
const Encoder = {
|
||||||
oninit: function(vnode) {
|
oninit: function(vnode) {
|
||||||
this.list_devices = {
|
this.list_devices = {
|
||||||
command: 'D:\\ffmpeg.exe',
|
command: 'ffmpeg.exe',
|
||||||
arguments: '-hide_banner -sources decklink',
|
arguments: '-hide_banner -sources decklink',
|
||||||
}
|
}
|
||||||
this.list_formats = {
|
this.list_formats = {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "church_streamer",
|
"name": "church_streamer",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.mjs",
|
"main": "index.mjs",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
Loading…
Reference in a new issue