hardware/serial: fix darwin cross-compilation build
This commit is contained in:
1 parent
64e48163d0
commit
893e61dc51
1 file changed
+2
-2
@@ -9,8 +9,8 @@ func serialGetTermios(fd int) (*unix.Termios, error) {
|
||||
}
|
||||
|
||||
func serialSetSpeed(tio *unix.Termios, speed uint32) error {
|
||||
tio.Ispeed = speed
|
||||
tio.Ospeed = speed
|
||||
tio.Ispeed = uint64(speed)
|
||||
tio.Ospeed = uint64(speed)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user