I will clean this mess eventually but yay for the relative for now

This commit is contained in:
2025-04-10 23:27:47 +01:00
parent 2abc2700ed
commit a915484c1b
5 changed files with 293 additions and 222 deletions
+4 -2
View File
@@ -2,6 +2,7 @@ package main
import (
"log"
"time"
"github.com/ESilva15/goirsdk"
"github.com/tarm/serial"
@@ -25,8 +26,9 @@ func (e *ESDI) Close() {
func ESDIInit(port string, baud int) (ESDI, error) {
sConfig := &serial.Config{
Name: port,
Baud: baud,
Name: port,
Baud: baud,
ReadTimeout: time.Millisecond * 1000,
}
// Open the serial port