summaryrefslogtreecommitdiffstats
path: root/src/occ_405/wof/wof.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/occ_405/wof/wof.c')
-rw-r--r--src/occ_405/wof/wof.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/occ_405/wof/wof.c b/src/occ_405/wof/wof.c
index a8ada6a..a9d70af 100644
--- a/src/occ_405/wof/wof.c
+++ b/src/occ_405/wof/wof.c
@@ -1515,6 +1515,8 @@ void calculate_ceff_ratio_vdd( void )
// Now check the raw ceff ratio to prevent Over current by clipping to max of 100%
// this is saved to the parameter used by the rest of the wof alg
g_wof->ceff_ratio_vdd = prevent_over_current(l_raw_ceff_ratio);
+ // save the final adjusted Ceff ratio to a sensor
+ sensor_update(AMECSENSOR_PTR(CEFFVDDRATIOADJ), (uint16_t)g_wof->ceff_ratio_vdd);
}
} // else v_ratio != 0
}
OpenPOWER on IntegriCloud