[Companion] Horus support missing the top bar and current view

This commit is contained in:
Bertrand Songis
2016-11-27 20:11:36 +01:00
parent 3c47da2b39
commit 510e2ea450
3 changed files with 6 additions and 0 deletions
+3
View File
@@ -1060,6 +1060,7 @@ class CustomScreenData {
};
#else
typedef char CustomScreenData[610+1];
typedef char TopbarData[216+1];
#endif
class ModelData {
@@ -1131,6 +1132,8 @@ class ModelData {
CustomScreenData customScreenData[5];
TopbarData topbarData;
void clear();
bool isEmpty() const;
void setDefaultInputs(const GeneralSettings & settings);
@@ -3396,6 +3396,8 @@ OpenTxModelData::OpenTxModelData(ModelData & modelData, BoardEnum board, unsigne
for (int i = 0; i < 5; i++) {
internalField.Append(new CharField<610>(modelData.customScreenData[i], true, "Custom screen blob"));
}
internalField.Append(new CharField<216>(modelData.topbarData, true, "Top bar blob"));
internalField.Append(new SpareBitsField<8>()); // current view
}
}
+1
View File
@@ -1101,6 +1101,7 @@ static inline void check_struct()
CHKSIZE(RadioData, 847);
CHKSIZE(ModelData, 9380);
CHKSIZE(CustomScreenData, 610);
CHKSIZE(Topbar::PersistentData, 216);
#elif defined(PCBSKY9X)
CHKSIZE(MixData, 20);
CHKSIZE(ExpoData, 17);