mirror of
https://github.com/synthetos/g2.git
synced 2026-02-06 02:51:54 +08:00
Big commit. Added nv->value_int, and changed nv_value to nv->value_flt. Many many things changed. Passes smoke test. Now on to some real regressions.
This commit is contained in:
@@ -379,13 +379,13 @@ static void _send_probe_report() {
|
||||
|
||||
stat_t cm_get_prbr(nvObj_t *nv)
|
||||
{
|
||||
nv->value = (float)cm->probe_report_enable;
|
||||
nv->valuetype = TYPE_INT;
|
||||
nv->value_int = cm->probe_report_enable;
|
||||
nv->valuetype = TYPE_INTEGER; // ++++ should probably be type boolean
|
||||
return (STAT_OK);
|
||||
}
|
||||
|
||||
stat_t cm_set_prbr(nvObj_t *nv)
|
||||
{
|
||||
cm->probe_report_enable = fp_NOT_ZERO(nv->value);
|
||||
cm->probe_report_enable = nv->value_int;
|
||||
return (STAT_OK);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user