Fix bug in DL_SETTING (it was no longer possible to send 0. !)

This commit is contained in:
Pascal Brisset
2009-08-18 09:25:48 +00:00
parent ece00fd17b
commit 638e2ee5a2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -537,7 +537,7 @@ let create_ac = fun alert (geomap:G.widget) (acs_notebook:GPack.notebook) (ac_id
Xml.Element("empty", [], [])
in
let dl_setting_callback = fun idx value ->
if classify_float value = FP_normal then
if classify_float value = FP_normal || classify_float value = FP_zero then
dl_setting ac_id idx value
else
get_dl_setting ac_id idx
+1 -1
View File
@@ -47,7 +47,7 @@ let one_ac = fun (notebook:GPack.notebook) ac_name ->
let callback = fun idx value ->
let vs = ["ac_id", Pprz.String ac_id; "index", Pprz.Int idx] in
if classify_float value = FP_normal then
if classify_float value = FP_normal || classify_float value =FP_zero then
let vs' = ("value", Pprz.Float value) :: vs in
Ground_Pprz.message_send "dl" "DL_SETTING" vs'
else