mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-06 07:53:43 +08:00
complete missing match in link.ml
This commit is contained in:
@@ -308,6 +308,11 @@ let send = fun ac_id device payload _priority ->
|
||||
let buf = Pprz.Transport.packet payload in
|
||||
Printf.fprintf o "%s" buf; flush o;
|
||||
Debug.call 's' (fun f -> fprintf f "mm sending: %s\n" (Debug.xprint buf));
|
||||
| Pprz2 ->
|
||||
let o = Unix.out_channel_of_descr device.fd in
|
||||
let buf = Pprz.TransportExtended.packet payload in
|
||||
Printf.fprintf o "%s" buf; flush o;
|
||||
Debug.call 'l' (fun f -> fprintf f "mm sending: %s\n" (Debug.xprint buf));
|
||||
| XBee ->
|
||||
XB.send ~ac_id device payload
|
||||
|
||||
|
||||
Reference in New Issue
Block a user