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:
Raphael Coeffic
2021-11-10 11:07:03 +01:00
parent 288fe158ae
commit e7519b6cce
7 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -27,7 +27,7 @@
#include "form.h" #include "form.h"
#include "zone.h" #include "zone.h"
#define WIDGET_NAME_LEN 10 #define WIDGET_NAME_LEN 12
#define MAX_WIDGET_OPTIONS 5 // Name? #define MAX_WIDGET_OPTIONS 5 // Name?
#if LCD_W > LCD_H #if LCD_W > LCD_H
@@ -786,7 +786,7 @@ static const struct YamlNode struct_WidgetPersistentData[] = {
}; };
static const struct YamlNode struct_ZonePersistentData[] = { static const struct YamlNode struct_ZonePersistentData[] = {
YAML_IDX, YAML_IDX,
YAML_STRING("widgetName", 10), YAML_STRING("widgetName", 12),
YAML_STRUCT("widgetData", 480, struct_WidgetPersistentData, NULL), YAML_STRUCT("widgetData", 480, struct_WidgetPersistentData, NULL),
YAML_END YAML_END
}; };
@@ -803,7 +803,7 @@ static const struct YamlNode struct_WidgetPersistentData[] = {
}; };
static const struct YamlNode struct_ZonePersistentData[] = { static const struct YamlNode struct_ZonePersistentData[] = {
YAML_IDX, YAML_IDX,
YAML_STRING("widgetName", 10), YAML_STRING("widgetName", 12),
YAML_STRUCT("widgetData", 480, struct_WidgetPersistentData, NULL), YAML_STRUCT("widgetData", 480, struct_WidgetPersistentData, NULL),
YAML_END YAML_END
}; };
@@ -803,7 +803,7 @@ static const struct YamlNode struct_WidgetPersistentData[] = {
}; };
static const struct YamlNode struct_ZonePersistentData[] = { static const struct YamlNode struct_ZonePersistentData[] = {
YAML_IDX, YAML_IDX,
YAML_STRING("widgetName", 10), YAML_STRING("widgetName", 12),
YAML_STRUCT("widgetData", 480, struct_WidgetPersistentData, NULL), YAML_STRUCT("widgetData", 480, struct_WidgetPersistentData, NULL),
YAML_END YAML_END
}; };
@@ -786,7 +786,7 @@ static const struct YamlNode struct_WidgetPersistentData[] = {
}; };
static const struct YamlNode struct_ZonePersistentData[] = { static const struct YamlNode struct_ZonePersistentData[] = {
YAML_IDX, YAML_IDX,
YAML_STRING("widgetName", 10), YAML_STRING("widgetName", 12),
YAML_STRUCT("widgetData", 480, struct_WidgetPersistentData, NULL), YAML_STRUCT("widgetData", 480, struct_WidgetPersistentData, NULL),
YAML_END YAML_END
}; };
@@ -803,7 +803,7 @@ static const struct YamlNode struct_WidgetPersistentData[] = {
}; };
static const struct YamlNode struct_ZonePersistentData[] = { static const struct YamlNode struct_ZonePersistentData[] = {
YAML_IDX, YAML_IDX,
YAML_STRING("widgetName", 10), YAML_STRING("widgetName", 12),
YAML_STRUCT("widgetData", 480, struct_WidgetPersistentData, NULL), YAML_STRUCT("widgetData", 480, struct_WidgetPersistentData, NULL),
YAML_END YAML_END
}; };
@@ -803,7 +803,7 @@ static const struct YamlNode struct_WidgetPersistentData[] = {
}; };
static const struct YamlNode struct_ZonePersistentData[] = { static const struct YamlNode struct_ZonePersistentData[] = {
YAML_IDX, YAML_IDX,
YAML_STRING("widgetName", 10), YAML_STRING("widgetName", 12),
YAML_STRUCT("widgetData", 480, struct_WidgetPersistentData, NULL), YAML_STRUCT("widgetData", 480, struct_WidgetPersistentData, NULL),
YAML_END YAML_END
}; };