#[unsafe(no_mangle)]pub extern "C" fn pamoja_power_plan_with_thresholds(
plan: PamojaPowerPlan,
saver_below: f32,
critical_below: f32,
) -> PamojaPowerPlanExpand description
Returns a plan with the state-of-charge thresholds moved.
§Arguments
plan- the plan to adjust.saver_below- enterPamojaPowerMode::Saverbelow this charge.critical_below- enterPamojaPowerMode::Criticalbelow this charge.
§Returns
The adjusted plan.