mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-06 03:50:13 +02:00
Improvement: Check CONTACTOR_CONTROL is enabled when using PWM_CONTACTOR_CONTROL
We should make sure that CONTACTOR_CONTROL is enabled when using PWM_CONTACTOR_CONTROL is enabled. Signed-off-by: Christopher Obbard <obbardc@gmail.com>
This commit is contained in:
parent
95f4dd11f5
commit
d1e61a16af
2 changed files with 7 additions and 1 deletions
|
@ -42,6 +42,12 @@
|
|||
#endif // MQTT
|
||||
#endif // WIFI
|
||||
|
||||
#ifndef CONTACTOR_CONTROL
|
||||
#ifdef PWM_CONTACTOR_CONTROL
|
||||
#error CONTACTOR_CONTROL needs to be enabled for PWM_CONTACTOR_CONTROL
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Preferences settings; // Store user settings
|
||||
// The current software version, shown on webserver
|
||||
const char* version_number = "7.4.dev";
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
//#define DEBUG_CANFD_DATA //Enable this line to have the USB port output CAN-FD data while program runs (WARNING, raises CPU load, do not use for production)
|
||||
//#define INTERLOCK_REQUIRED //Nissan LEAF specific setting, if enabled requires both high voltage conenctors to be seated before starting
|
||||
//#define CONTACTOR_CONTROL //Enable this line to have pins 25,32,33 handle automatic precharge/contactor+/contactor- closing sequence
|
||||
//#define PWM_CONTACTOR_CONTROL //Enable this line to use PWM for CONTACTOR_CONTROL, which lowers power consumption and heat generation.
|
||||
//#define PWM_CONTACTOR_CONTROL //Enable this line to use PWM for CONTACTOR_CONTROL, which lowers power consumption and heat generation. CONTACTOR_CONTROL must be enabled.
|
||||
//#define DUAL_CAN //Enable this line to activate an isolated secondary CAN Bus using add-on MCP2515 chip (Needed for some inverters / double battery)
|
||||
//#define CAN_FD //Enable this line to activate an isolated secondary CAN-FD bus using add-on MCP2518FD chip / Native CANFD on Stark board
|
||||
//#define USE_CANFD_INTERFACE_AS_CLASSIC_CAN // Enable this line if you intend to use the CANFD as normal CAN
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue