Skip to content

Commit

Permalink
Fix isolation resistance checking in CableCheck
Browse files Browse the repository at this point in the history
Signed-off-by: Cornelius Claussen <cc@pionix.de>
  • Loading branch information
corneliusclaussen committed Feb 13, 2023
1 parent 13e5fa6 commit 690012a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/EvseManager/EvseManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 690012a

Please sign in to comment.