More error flags added and defined as output data object

This commit is contained in:
Martin Jaeger
2019-11-01 12:58:31 +01:00
parent 22f9138a15
commit b09f4ca809
4 changed files with 35 additions and 31 deletions
+1 -1
View File
@@ -199,7 +199,7 @@ void Dcdc::control()
// what to do... (e.g. call dcdc_self_destruction)
current_debounce_counter++;
if (current_debounce_counter > CONTROL_FREQUENCY) { // waited 1s before setting the flag
dev_stat.error_flags |= (1 << ERR_HS_MOSFET_SHORT);
dev_stat.error_flags |= (1 << ERR_DCDC_HS_MOSFET_SHORT);
}
}
else { // hardware is fine