Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/main/blackbox/blackbox.c
Original file line number Diff line number Diff line change
Expand Up @@ -940,8 +940,11 @@ static void blackboxSetState(BlackboxState newState)
blackboxState = newState;

#ifdef USE_DUAL_GYRO
// The second gyro is read only for the log, so only while there is one
gyroSetSecondaryLogging(newState > BLACKBOX_STATE_STOPPED);
// The second gyro is read only for the log, so only while frames are being written.
// Every other state above STOPPED, the headers, a log paused from the switch, and
// the shutdown, writes no main frame, so a reading taken there goes nowhere and the
// transaction on the bus is spent for nothing
gyroSetSecondaryLogging(newState == BLACKBOX_STATE_RUNNING);
#endif
}

Expand Down
Loading