sim-modem/main.go
2024-07-23 17:59:26 +03:00

30 lines
467 B
Go

package main
import (
"log"
"github.com/CGSG-2021-AE4/modem-test/api/modem"
)
func main() {
log.Println("CGSG forever!!!")
if err := mainE(); err != nil {
log.Println("MAIN finished with error:", err.Error())
}
log.Println("END")
}
func mainE() error {
m := modem.New()
if err := m.Init(); err != nil {
return err
}
return nil
// ports, err := serial.GetPortsList()
// if err != nil {
// return err
// }
// log.Println(ports)
// return nil
}