@@ -53,15 +53,16 @@ extern uint32_t divert_min_charge_time;
5353// 24-bits of Flags
5454extern uint32_t flags ;
5555
56- #define CONFIG_SERVICE_EMONCMS (1 << 0)
57- #define CONFIG_SERVICE_MQTT (1 << 1)
58- #define CONFIG_SERVICE_OHM (1 << 2)
59- #define CONFIG_SERVICE_SNTP (1 << 3)
60- #define CONFIG_MQTT_PROTOCOL (7 << 4) // Maybe leave a bit of space after for additional protocols
61- #define CONFIG_MQTT_ALLOW_ANY_CERT (1 << 7)
62- #define CONFIG_SERVICE_TESLA (1 << 8)
63- #define CONFIG_SERVICE_DIVERT (1 << 9)
64- #define CONFIG_CHARGE_MODE (7 << 10) // 3 bits for mode
56+ #define CONFIG_SERVICE_EMONCMS (1 << 0)
57+ #define CONFIG_SERVICE_MQTT (1 << 1)
58+ #define CONFIG_SERVICE_OHM (1 << 2)
59+ #define CONFIG_SERVICE_SNTP (1 << 3)
60+ #define CONFIG_MQTT_PROTOCOL (7 << 4) // Maybe leave a bit of space after for additional protocols
61+ #define CONFIG_MQTT_ALLOW_ANY_CERT (1 << 7)
62+ #define CONFIG_SERVICE_TESLA (1 << 8)
63+ #define CONFIG_SERVICE_DIVERT (1 << 9)
64+ #define CONFIG_CHARGE_MODE (7 << 10) // 3 bits for mode
65+ #define CONFIG_PAUSE_USES_DISABLED (1 << 13)
6566
6667inline bool config_emoncms_enabled () {
6768 return CONFIG_SERVICE_EMONCMS == (flags & CONFIG_SERVICE_EMONCMS );
@@ -99,6 +100,10 @@ inline uint8_t config_charge_mode() {
99100 return (flags & CONFIG_CHARGE_MODE ) >> 10 ;
100101}
101102
103+ inline bool config_pause_uses_disabled () {
104+ return CONFIG_PAUSE_USES_DISABLED == (flags & CONFIG_PAUSE_USES_DISABLED );
105+ }
106+
102107// Ohm Connect Settings
103108extern String ohm ;
104109
0 commit comments