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:
Alden Hart
2017-03-19 20:27:53 -04:00
parent 36f8b9a9cc
commit 5f306e1657
15 changed files with 841 additions and 811 deletions

View File

@@ -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);
}