1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-02 10:24:11 +01:00

made curr_state 'volatile' in pios_i2c_priv.h to prevernt compiler optimization lockup.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1611 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
pip 2010-09-13 20:52:56 +00:00 committed by pip
parent 4a4932e5ff
commit 8bfaa997d3

View File

@ -84,7 +84,7 @@ struct pios_i2c_adapter {
bool bus_needed_reset; bool bus_needed_reset;
enum i2c_adapter_state curr_state; volatile enum i2c_adapter_state curr_state;
const struct pios_i2c_txn * first_txn; const struct pios_i2c_txn * first_txn;
const struct pios_i2c_txn * active_txn; const struct pios_i2c_txn * active_txn;
const struct pios_i2c_txn * last_txn; const struct pios_i2c_txn * last_txn;