Adjusted new Com Connect Logic

This commit is contained in:
simon 2026-02-10 15:58:44 +01:00
parent f8aa19d331
commit 22a72ee02d

View File

@ -39,7 +39,11 @@ func main() {
func StartTests(config Config) { func StartTests(config Config) {
bus := eventbus.New() bus := eventbus.New()
com, err := uart.Connect(bus, config.UartPort, config.Baudrate) com, err := uart.NewCom(bus)
if err != nil {
log.Printf("Could not Create COM %v", err)
}
err = com.Connect(config.UartPort, config.Baudrate)
if err != nil { if err != nil {
log.Printf("Could not Connect with Uart Device %v", err) log.Printf("Could not Connect with Uart Device %v", err)
} }