Adjusted new Com Connect Logic
This commit is contained in:
parent
f8aa19d331
commit
22a72ee02d
@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user