Added Testing of Callback Message for Parsing messages
This commit is contained in:
@@ -22,10 +22,7 @@ func (sc *SerialConnection) GetPortPath() string {
|
||||
return sc.portPath
|
||||
}
|
||||
|
||||
func (sc *SerialConnection) Connect(portPath string) error {
|
||||
mode := &serial.Mode{
|
||||
BaudRate: 115200,
|
||||
}
|
||||
func (sc *SerialConnection) Connect(portPath string, mode *serial.Mode) error {
|
||||
port, err := serial.Open(portPath, mode)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user