hardware/serial: fix darwin cross-compilation build

This commit is contained in:
SiYue-ZO
2026-04-28 12:57:44 +08:00
parent 64e48163d0
commit 893e61dc51
+2 -2
View File
@@ -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
}