From 65672b62aef3a5d2551601282b129d75cca9a0e4 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Fri, 14 Oct 2022 17:14:35 +0200 Subject: [PATCH] Berry add access to `restart_flag` --- .../tasmota_xdrv_driver/xdrv_52_3_berry_tasmota_global.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_tasmota_global.ino b/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_tasmota_global.ino index a3ebc17f1..614c31a43 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_tasmota_global.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_52_3_berry_tasmota_global.ino @@ -33,11 +33,12 @@ extern "C" { extern const be_ctypes_structure_t be_tasmota_global_struct = { sizeof(TasmotaGlobal), /* size in bytes */ - 3, /* number of elements */ + 4, /* number of elements */ nullptr, - (const be_ctypes_structure_item_t[3]) { + (const be_ctypes_structure_item_t[4]) { { "devices_present", offsetof(TasmotaGlobal_t, devices_present), 0, 0, ctypes_u8, 0 }, { "fast_loop_enabled", offsetof(TasmotaGlobal_t, berry_fast_loop_enabled), 0, 0, ctypes_u8, 0 }, + { "restart_flag", offsetof(TasmotaGlobal_t, restart_flag), 0, 0, ctypes_u8, 0 }, { "sleep", offsetof(TasmotaGlobal_t, sleep), 0, 0, ctypes_u8, 0 }, }};