show restart needed after changing board profile. also no need to restart sensors.

This commit is contained in:
proddy
2025-11-20 14:24:40 +01:00
parent 8c61735579
commit b9d96620a4
2 changed files with 27 additions and 20 deletions

View File

@@ -90,17 +90,16 @@ class WebSettings {
enum ChangeFlags : uint8_t {
NONE = 0,
UART = (1 << 0), // 1
SYSLOG = (1 << 1), // 2
ADC = (1 << 2), // 4 - analog
SENSOR = (1 << 3), // 8
SHOWER = (1 << 4), // 16
LED = (1 << 5), // 32
BUTTON = (1 << 6), // 64
MQTT = (1 << 7), // 128
RESTART = 0xFF
NONE = 0,
UART = (1 << 0), // 1 - uart
SYSLOG = (1 << 1), // 2 - syslog
ANALOG_SENSOR = (1 << 2), // 4 - analog
TEMPERATURE_SENSOR = (1 << 3), // 8 - dallas sensor
SHOWER = (1 << 4), // 16 - shower timer and alert
LED = (1 << 5), // 32 - led
BUTTON = (1 << 6), // 64 - button
MQTT = (1 << 7), // 128 - mqtt
RESTART = 0xFF // 255 - restart request (all changes)
};
static void check_flag(int prev_v, int new_v, uint8_t flag) {