io.serial: use io.streams.duplex:with-stream.
parent
75f36fa9c5
commit
15fff4a1fd
|
@ -23,10 +23,7 @@ M: serial-port dispose* ( serial -- ) stream>> dispose ;
|
|||
swap >>path
|
||||
default-serial-flags ;
|
||||
|
||||
: with-duplex-stream ( duplex-stream quot -- )
|
||||
[ [ in>> ] [ out>> ] bi ] dip with-streams ; inline
|
||||
|
||||
: with-serial-port ( serial-port quot -- )
|
||||
[ open-serial ] dip with-duplex-stream ; inline
|
||||
[ open-serial ] dip with-stream ; inline
|
||||
|
||||
"io.serial." os name>> append require
|
||||
|
|
Loading…
Reference in New Issue