rename psu current fault levels

This commit is contained in:
Oskar Weigl
2020-05-01 16:37:20 -07:00
parent c6bb191457
commit d002a74d24
5 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -174,11 +174,11 @@ bool Axis::do_checks() {
}
}
if (Ibus_sum > board_config.power_supply_max_current) {
if (Ibus_sum > board_config.dc_max_positive_current) {
error_ |= ERROR_DC_BUS_OVER_CURRENT;
}
if (Ibus_sum < board_config.power_supply_min_current) {
error_ |= ERROR_DC_BUS_UNDER_CURRENT;
if (Ibus_sum < board_config.dc_max_negative_current) {
error_ |= ERROR_DC_BUS_OVER_REGEN_CURRENT;
}
// Sub-components should use set_error which will propegate to this error_