From 0bc319acb5adb665b56a4d34a959b2c340728af6 Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Fri, 31 Jan 2025 22:07:44 +0100 Subject: [PATCH] Berry 'tasmota.settings' entries for PixelType (#22912) --- CHANGELOG.md | 1 + .../tasmota_xdrv_driver/xdrv_52_3_berry_tasmota_global.ino | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b1af0eaf7..295bddaaa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ All notable changes to this project will be documented in this file. - Berry `tasmota.add_rule_once` and auto-remove rules with same pattern and id (#22900) - Berry example for HeatFan WiFi Controller - LVGL add `lv.set_paint_cb()` to register a callback when screen is refreshed +- Berry `tasmota.settings` entries for PixelType ### Breaking Changed 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 cfb92a1f9..2d1c91a2c 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 @@ -52,15 +52,18 @@ extern "C" { extern const be_ctypes_structure_t be_tasmota_settings_struct = { sizeof(TSettings), /* size in bytes */ - 11, /* number of elements */ + 14, /* number of elements */ nullptr, - (const be_ctypes_structure_item_t[11]) { + (const be_ctypes_structure_item_t[14]) { // Warning: fields below need to be in alphabetical order { "bootcount", offsetof(TSettings, bootcount), 0, 0, ctypes_u16, 0 }, { "light_pixels", 0x496, 0, 15, ctypes_bf, 0 }, { "light_pixels_alternate", 0xEC5, 7, 1, ctypes_bf, 0 }, { "light_pixels_height_1", 0xEC4, 0, 15, ctypes_bf, 0 }, + { "light_pixels_order", 0xFD8, 4, 3, ctypes_bf, 0 }, { "light_pixels_reverse", 0x497, 7, 1, ctypes_bf, 0 }, + { "light_pixels_rgbw", 0xFD8, 7, 1, ctypes_bf, 0 }, + { "light_pixels_w_first", 0xFD9, 0, 1, ctypes_bf, 0 }, { "mqttlog_level", offsetof(TSettings, mqttlog_level), 0, 0, ctypes_u8, 0 }, { "seriallog_level", offsetof(TSettings, seriallog_level), 0, 0, ctypes_u8, 0 }, { "sleep", offsetof(TSettings, sleep), 0, 0, ctypes_u8, 0 },