mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 09:49:32 +02:00
Remove unused ifdefs
This commit is contained in:
parent
f03324585b
commit
bb21b5d8e1
22 changed files with 5 additions and 89 deletions
|
@ -30,7 +30,7 @@
|
|||
#include "src/inverter/INVERTERS.h"
|
||||
|
||||
#if !defined(HW_LILYGO) && !defined(HW_LILYGO2CAN) && !defined(HW_STARK) && !defined(HW_3LB) && !defined(HW_DEVKIT)
|
||||
#error You must select a target hardware in the USER_SETTINGS.h file!
|
||||
#error You must select a target hardware!
|
||||
#endif
|
||||
|
||||
// The current software version, shown on webserver
|
||||
|
@ -396,9 +396,10 @@ void core_loop(void*) {
|
|||
}
|
||||
led_exe();
|
||||
handle_contactors(); // Take care of startup precharge/contactor closing
|
||||
#ifdef PRECHARGE_CONTROL
|
||||
handle_precharge_control(currentMillis);
|
||||
#endif // PRECHARGE_CONTROL
|
||||
if (precharge_control_enabled) {
|
||||
handle_precharge_control(currentMillis); //Drive the hia4v1 via PWM
|
||||
}
|
||||
|
||||
if (datalayer.system.info.performance_measurement_active) {
|
||||
END_TIME_MEASUREMENT_MAX(10ms, datalayer.system.status.time_10ms_us);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue