Merge pull request #16819 from s-hadinger/berry_restart_flag

Berry add access to `restart_flag`
This commit is contained in:
s-hadinger 2022-10-14 08:59:21 -07:00 committed by GitHub
commit 2523a29da3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -33,19 +33,21 @@ 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 },
}};
extern const be_ctypes_structure_t be_tasmota_settings_struct = {
sizeof(TSettings), /* size in bytes */
1, /* number of elements */
2, /* number of elements */
nullptr,
(const be_ctypes_structure_item_t[1]) {
(const be_ctypes_structure_item_t[2]) {
{ "bootcount", offsetof(TSettings, bootcount), 0, 0, ctypes_u16, 0 },
{ "sleep", offsetof(TSettings, sleep), 0, 0, ctypes_u8, 0 },
}};