Removed packed attribute from rtx and radio state data structures as they can cause crashes due to unaligned memory accesses.

replace/19ea6e69c0d1b9adf48561ae9c1f936227e52c5e
Silvano Seva 2021-04-15 21:24:26 +02:00
rodzic c887a61599
commit a850f9f1ab
2 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -46,7 +46,7 @@ typedef struct
uint16_t txToneEn : 1, /**< TX CTC/DCS tone enable */
txTone : 15; /**< TX CTC/DCS tone */
}
__attribute__((packed)) rtxStatus_t;
rtxStatus_t;
/**
* \enum bandwidth Enumeration type defining the current rtx bandwidth.

Wyświetl plik

@ -37,7 +37,7 @@ typedef struct
uint16_t azimuth; // Azimuth in degrees
uint8_t snr; // Quality of the signal in range 0-99
}
__attribute__((packed)) sat_t;
sat_t;
/**
* Data structure representing the last state received from the GPS module.
@ -58,7 +58,7 @@ typedef struct
float tmg_mag; // Course over ground, degrees, magnetic
float tmg_true; // Course over ground, degrees, true
}
__attribute__((packed)) gps_t;
gps_t;
/**
* Part of this structure has been commented because the corresponding
@ -96,7 +96,7 @@ typedef struct
settings_t settings;
gps_t gps_data;
}
__attribute__((packed)) state_t;
state_t;
enum TunerMode
{