[Companion] Horus support missing the top bar and current view
This commit is contained in:
@@ -1060,6 +1060,7 @@ class CustomScreenData {
|
|||||||
};
|
};
|
||||||
#else
|
#else
|
||||||
typedef char CustomScreenData[610+1];
|
typedef char CustomScreenData[610+1];
|
||||||
|
typedef char TopbarData[216+1];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
class ModelData {
|
class ModelData {
|
||||||
@@ -1131,6 +1132,8 @@ class ModelData {
|
|||||||
|
|
||||||
CustomScreenData customScreenData[5];
|
CustomScreenData customScreenData[5];
|
||||||
|
|
||||||
|
TopbarData topbarData;
|
||||||
|
|
||||||
void clear();
|
void clear();
|
||||||
bool isEmpty() const;
|
bool isEmpty() const;
|
||||||
void setDefaultInputs(const GeneralSettings & settings);
|
void setDefaultInputs(const GeneralSettings & settings);
|
||||||
|
|||||||
@@ -3396,6 +3396,8 @@ OpenTxModelData::OpenTxModelData(ModelData & modelData, BoardEnum board, unsigne
|
|||||||
for (int i = 0; i < 5; i++) {
|
for (int i = 0; i < 5; i++) {
|
||||||
internalField.Append(new CharField<610>(modelData.customScreenData[i], true, "Custom screen blob"));
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1101,6 +1101,7 @@ static inline void check_struct()
|
|||||||
CHKSIZE(RadioData, 847);
|
CHKSIZE(RadioData, 847);
|
||||||
CHKSIZE(ModelData, 9380);
|
CHKSIZE(ModelData, 9380);
|
||||||
CHKSIZE(CustomScreenData, 610);
|
CHKSIZE(CustomScreenData, 610);
|
||||||
|
CHKSIZE(Topbar::PersistentData, 216);
|
||||||
#elif defined(PCBSKY9X)
|
#elif defined(PCBSKY9X)
|
||||||
CHKSIZE(MixData, 20);
|
CHKSIZE(MixData, 20);
|
||||||
CHKSIZE(ExpoData, 17);
|
CHKSIZE(ExpoData, 17);
|
||||||
|
|||||||
Reference in New Issue
Block a user