Merge pull request #11791 from s-hadinger/zigbee_max_48

Zigbee raise max devices to 48 on ESP32
This commit is contained in:
s-hadinger 2021-04-19 14:36:34 +02:00 committed by GitHub
commit 844efc581e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -182,7 +182,11 @@ SBuffer hibernateDevices(void) {
SBuffer buf(2048);
size_t devices_size = zigbee_devices.devicesSize();
#ifdef ESP32
if (devices_size > 48) { devices_size = 48; } // arbitrarily limit to 48 devices on ESP32, we will go beyond when we remove the limit of 2kb buffer
#else
if (devices_size > 32) { devices_size = 32; } // arbitrarily limit to 32 devices, for now
#endif
buf.add8(devices_size); // number of devices
for (uint32_t i = 0; i < devices_size; i++) {