From ae265b6f9489f966c87f977c8294a2532c073c8e Mon Sep 17 00:00:00 2001 From: rotorman Date: Wed, 20 Apr 2022 19:32:23 +0200 Subject: [PATCH] Bugfix missing YAML padding. --- radio/src/datastructs_private.h | 1 + radio/src/storage/yaml/yaml_datastructs_funcs.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/radio/src/datastructs_private.h b/radio/src/datastructs_private.h index eb064ae8d..4248046e2 100644 --- a/radio/src/datastructs_private.h +++ b/radio/src/datastructs_private.h @@ -28,6 +28,7 @@ #include "definitions.h" #include "opentx_types.h" #include "globals.h" +#include "serial.h" #if defined(PCBTARANIS) #define N_TARANIS_FIELD(x) diff --git a/radio/src/storage/yaml/yaml_datastructs_funcs.cpp b/radio/src/storage/yaml/yaml_datastructs_funcs.cpp index 54e8c8396..88fe64468 100644 --- a/radio/src/storage/yaml/yaml_datastructs_funcs.cpp +++ b/radio/src/storage/yaml/yaml_datastructs_funcs.cpp @@ -1854,6 +1854,7 @@ static bool port_write(void* user, yaml_writer_func wf, void* opaque) static const struct YamlNode struct_serialConfig[] = { YAML_IDX_CUST( "port", port_read, port_write), YAML_ENUM( "mode", 4, enum_UartModes), + YAML_PADDING( 3 ), YAML_UNSIGNED( "power", 1 ), YAML_END };