From 690012a9e653cefcc1359ee11fd1f9f9316d32c4 Mon Sep 17 00:00:00 2001 From: Cornelius Claussen Date: Mon, 13 Feb 2023 11:39:02 +0100 Subject: [PATCH] Fix isolation resistance checking in CableCheck Signed-off-by: Cornelius Claussen --- modules/EvseManager/EvseManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/EvseManager/EvseManager.cpp b/modules/EvseManager/EvseManager.cpp index 802e4838e..3e824a469 100644 --- a/modules/EvseManager/EvseManager.cpp +++ b/modules/EvseManager/EvseManager.cpp @@ -855,8 +855,8 @@ void EvseManager::cable_check() { } else { // verify it is within ranges. Warning level is <500 Ohm/V_max_output_rating, Fault // is <100 - const double min_resistance_ok = 500. / powersupply_capabilities.max_export_voltage_V; - const double min_resistance_warning = 100. / powersupply_capabilities.max_export_voltage_V; + const double min_resistance_ok = 500. * powersupply_capabilities.max_export_voltage_V; + const double min_resistance_warning = 100. * powersupply_capabilities.max_export_voltage_V; if (m.resistance_N_Ohm < min_resistance_warning || m.resistance_P_Ohm < min_resistance_warning) {