send_ppm sent only if RC is active

This commit is contained in:
Pascal Brisset
2006-04-21 22:57:44 +00:00
parent c63cbbcb9b
commit e45b257c34
+3
View File
@@ -107,6 +107,9 @@ module Make(A:Data.MISSION) = struct
rc_channels;
ignore (on_off#connect#toggled (fun () -> sliders#coerce#misc#set_sensitive on_off#active));
let send_ppm = fun () ->
if on_off#active then send_ppm () in
Stdlib.timer rc_period send_ppm; (** FIXME: should use time_scale *)
window#show ()