hardware/serial: fix darwin cross-compilation build
This commit is contained in:
parent
64e48163d0
commit
893e61dc51
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue