mirror of
https://github.com/opentx/opentx.git
synced 2025-07-24 00:35:18 +03:00
Also backup members inside unions,
the code is a bit more complicated since unions can have structs or simple types. Also change Telemetry sensor to be a struct, since a class with all public is identical to a struct in C++
This commit is contained in:
parent
c24219cbcd
commit
86076bbf32
3 changed files with 94 additions and 19 deletions
|
@ -622,9 +622,7 @@ PACK(struct MavlinkTelemetryData {
|
|||
*/
|
||||
|
||||
#if defined(CPUARM)
|
||||
// TODO struct as others
|
||||
PACK(class TelemetrySensor {
|
||||
public:
|
||||
PACK(struct TelemetrySensor {
|
||||
union {
|
||||
uint16_t id; // data identifier, for FrSky we can reuse existing ones. Source unit is derived from type.
|
||||
uint16_t persistentValue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue