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:
Christopher Obbard 2024-09-24 14:55:35 +01:00
parent 95f4dd11f5
commit d1e61a16af
2 changed files with 7 additions and 1 deletions

View file

@ -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";