mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
made ahrs_state 'volatile' in ahrs.c to prevent compiler optimization lockup
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1612 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
8bfaa997d3
commit
7da2fc2ba7
@ -45,7 +45,7 @@
|
||||
* @arg AHRS_DATA_READY - Data ready for downsampling and processing
|
||||
* @arg AHRS_PROCESSING - Performing update on the available data
|
||||
*/
|
||||
enum {AHRS_IDLE, AHRS_DATA_READY, AHRS_PROCESSING} ahrs_state;
|
||||
volatile enum {AHRS_IDLE, AHRS_DATA_READY, AHRS_PROCESSING} ahrs_state;
|
||||
enum algorithms ahrs_algorithm;
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user