From f77f77258f19426a9522bfa9dc75f4a861cf8dff Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Mon, 29 Nov 2021 23:11:25 +0100 Subject: [PATCH] Berry add `tasmota.global.devices_present` --- tasmota/xdrv_52_3_berry_tasmota_global.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tasmota/xdrv_52_3_berry_tasmota_global.ino b/tasmota/xdrv_52_3_berry_tasmota_global.ino index affb2f19d..e5f3bad46 100644 --- a/tasmota/xdrv_52_3_berry_tasmota_global.ino +++ b/tasmota/xdrv_52_3_berry_tasmota_global.ino @@ -33,9 +33,10 @@ extern "C" { extern const be_ctypes_structure_t be_tasmota_global_struct = { sizeof(TasmotaGlobal), /* size in bytes */ - 1, /* number of elements */ + 2, /* number of elements */ nullptr, (const be_ctypes_structure_item_t[2]) { + { "devices_present", offsetof(TasmotaGlobal_t, devices_present), 0, 0, ctypes_u8, 0 }, { "sleep", offsetof(TasmotaGlobal_t, sleep), 0, 0, ctypes_u8, 0 }, }}; @@ -43,7 +44,7 @@ extern "C" { sizeof(TSettings), /* size in bytes */ 1, /* number of elements */ nullptr, - (const be_ctypes_structure_item_t[2]) { + (const be_ctypes_structure_item_t[1]) { { "sleep", offsetof(TSettings, sleep), 0, 0, ctypes_u8, 0 }, }};