Fix serial outputter. Fix encoder path.
All checks were successful
/ deploy (push) Successful in -2040h37m56s

This commit is contained in:
Jonatan Nilsson 2024-02-20 05:43:07 +00:00
parent 777ad5ac80
commit 70faa49450
3 changed files with 9 additions and 8 deletions

View file

@ -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))])
}
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),

View file

@ -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 = {

View file

@ -1,6 +1,6 @@
{
"name": "church_streamer",
"version": "1.0.0",
"version": "1.0.1",
"description": "",
"main": "index.mjs",
"scripts": {