Add default value for `SetOption151` (#21560)

This commit is contained in:
s-hadinger 2024-06-03 22:53:13 +02:00 committed by GitHub
parent 4f732477dd
commit 01f9097acb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View File

@ -1014,6 +1014,9 @@
#define USE_ZIGBEE_MAXTIME_LIGHT 60*60 // 1h
#define USE_ZIGBEE_MAXTIME_LIFT 4*60*60 // 4h
// -- Matter support (ESP32 and variants) ----------------------------
#define MATTER_ENABLED false // Is Matter enabled by default (ie `SO151 1`)
// -- Other sensors/drivers -----------------------
//#define USE_SHIFT595 // Add support for 74xx595 8-bit shift registers (+0k7 code)
@ -1239,6 +1242,10 @@
// #define BE_LV_WIDGET_TABVIEW
// #define BE_LV_WIDGET_TILEVIEW
// -- Matter protocol ---------------------------------
// #define USE_MATTER_DEVICE // Enable Matter device support (+420KB)
// Enabled by default in standard ESP32 binary
#endif // ESP32
/*********************************************************************************************\

View File

@ -1425,6 +1425,9 @@ void SettingsDefaultSet2(void) {
#endif
#endif // FIRMWARE_MINIMAL
// Matter
flag6.matter_enabled |= MATTER_ENABLED;
Settings->flag = flag;
Settings->flag2 = flag2;
Settings->flag3 = flag3;