From 923d536ae2936db94d12095bff0bb9b2852b5fe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20J=C3=A4ger?= Date: Tue, 8 Feb 2022 18:43:12 +0100 Subject: [PATCH] DC/DC: Add output_hvs_enable/disable calls Without these calls the functions introduced in 6316dcd are useless. Remark: These functions are currently only used on a prototype for testing. --- app/src/dcdc.cpp | 3 +++ app/src/dcdc.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/dcdc.cpp b/app/src/dcdc.cpp index 117c16b..416bac0 100644 --- a/app/src/dcdc.cpp +++ b/app/src/dcdc.cpp @@ -228,6 +228,8 @@ __weak void Dcdc::control() if (startup_mode != DCDC_MODE_OFF) { + output_hvs_enable(); + // startup allowed, but we need to wait until voltages settle if (startup_inhibit()) { return; @@ -325,6 +327,7 @@ void Dcdc::stop() half_bridge_stop(); state = DCDC_CONTROL_OFF; off_timestamp = uptime(); + output_hvs_disable(); } void Dcdc::fuse_destruction() diff --git a/app/src/dcdc.h b/app/src/dcdc.h index dd6e659..abd5da7 100644 --- a/app/src/dcdc.h +++ b/app/src/dcdc.h @@ -181,7 +181,7 @@ private: void output_hvs_enable(); /** - * Disable the reverse polarity MOSFET on the high-sied (if option available) + * Disable the reverse polarity MOSFET on the high-side (if option available) */ void output_hvs_disable();