Extended widgetName to fill up alignment hole
widgetData is aligned on 32bit address, so that its offset was calculated wrong.
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
#include "form.h"
|
||||
#include "zone.h"
|
||||
|
||||
#define WIDGET_NAME_LEN 10
|
||||
#define WIDGET_NAME_LEN 12
|
||||
#define MAX_WIDGET_OPTIONS 5 // Name?
|
||||
|
||||
#if LCD_W > LCD_H
|
||||
|
||||
@@ -786,7 +786,7 @@ static const struct YamlNode struct_WidgetPersistentData[] = {
|
||||
};
|
||||
static const struct YamlNode struct_ZonePersistentData[] = {
|
||||
YAML_IDX,
|
||||
YAML_STRING("widgetName", 10),
|
||||
YAML_STRING("widgetName", 12),
|
||||
YAML_STRUCT("widgetData", 480, struct_WidgetPersistentData, NULL),
|
||||
YAML_END
|
||||
};
|
||||
|
||||
@@ -803,7 +803,7 @@ static const struct YamlNode struct_WidgetPersistentData[] = {
|
||||
};
|
||||
static const struct YamlNode struct_ZonePersistentData[] = {
|
||||
YAML_IDX,
|
||||
YAML_STRING("widgetName", 10),
|
||||
YAML_STRING("widgetName", 12),
|
||||
YAML_STRUCT("widgetData", 480, struct_WidgetPersistentData, NULL),
|
||||
YAML_END
|
||||
};
|
||||
|
||||
@@ -803,7 +803,7 @@ static const struct YamlNode struct_WidgetPersistentData[] = {
|
||||
};
|
||||
static const struct YamlNode struct_ZonePersistentData[] = {
|
||||
YAML_IDX,
|
||||
YAML_STRING("widgetName", 10),
|
||||
YAML_STRING("widgetName", 12),
|
||||
YAML_STRUCT("widgetData", 480, struct_WidgetPersistentData, NULL),
|
||||
YAML_END
|
||||
};
|
||||
|
||||
@@ -786,7 +786,7 @@ static const struct YamlNode struct_WidgetPersistentData[] = {
|
||||
};
|
||||
static const struct YamlNode struct_ZonePersistentData[] = {
|
||||
YAML_IDX,
|
||||
YAML_STRING("widgetName", 10),
|
||||
YAML_STRING("widgetName", 12),
|
||||
YAML_STRUCT("widgetData", 480, struct_WidgetPersistentData, NULL),
|
||||
YAML_END
|
||||
};
|
||||
|
||||
@@ -803,7 +803,7 @@ static const struct YamlNode struct_WidgetPersistentData[] = {
|
||||
};
|
||||
static const struct YamlNode struct_ZonePersistentData[] = {
|
||||
YAML_IDX,
|
||||
YAML_STRING("widgetName", 10),
|
||||
YAML_STRING("widgetName", 12),
|
||||
YAML_STRUCT("widgetData", 480, struct_WidgetPersistentData, NULL),
|
||||
YAML_END
|
||||
};
|
||||
|
||||
@@ -803,7 +803,7 @@ static const struct YamlNode struct_WidgetPersistentData[] = {
|
||||
};
|
||||
static const struct YamlNode struct_ZonePersistentData[] = {
|
||||
YAML_IDX,
|
||||
YAML_STRING("widgetName", 10),
|
||||
YAML_STRING("widgetName", 12),
|
||||
YAML_STRUCT("widgetData", 480, struct_WidgetPersistentData, NULL),
|
||||
YAML_END
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user