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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user