mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Use the flightModeFlags slow field for rcModes
This value was always zero, so re-task it for the flight mode selection (which it was always designed for).
This commit is contained in:
parent
372c9de651
commit
6343da6f09
1 changed files with 2 additions and 2 deletions
|
@ -307,7 +307,7 @@ typedef struct blackboxGpsState_s {
|
||||||
|
|
||||||
// This data is updated really infrequently:
|
// This data is updated really infrequently:
|
||||||
typedef struct blackboxSlowState_s {
|
typedef struct blackboxSlowState_s {
|
||||||
uint16_t flightModeFlags;
|
uint32_t flightModeFlags; // extend this data size (from uint16_t)
|
||||||
uint8_t stateFlags;
|
uint8_t stateFlags;
|
||||||
uint8_t failsafePhase;
|
uint8_t failsafePhase;
|
||||||
bool rxSignalReceived;
|
bool rxSignalReceived;
|
||||||
|
@ -742,7 +742,7 @@ static void writeSlowFrame(void)
|
||||||
*/
|
*/
|
||||||
static void loadSlowState(blackboxSlowState_t *slow)
|
static void loadSlowState(blackboxSlowState_t *slow)
|
||||||
{
|
{
|
||||||
slow->flightModeFlags = flightModeFlags;
|
slow->flightModeFlags = rcModeActivationMask; //was flightModeFlags;
|
||||||
slow->stateFlags = stateFlags;
|
slow->stateFlags = stateFlags;
|
||||||
slow->failsafePhase = failsafePhase();
|
slow->failsafePhase = failsafePhase();
|
||||||
slow->rxSignalReceived = rxIsReceivingSignal();
|
slow->rxSignalReceived = rxIsReceivingSignal();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue