compass: fixed a compiler warning

git-svn-id: https://arducopter.googlecode.com/svn/trunk@2844 f9c3cf11-9bcb-44bc-f272-b75c42450872
This commit is contained in:
tridge60@gmail.com 2011-07-13 09:10:24 +00:00
parent a9278b6fcd
commit 48f010f80c

View File

@ -108,7 +108,7 @@ AP_Compass_HMC5843::init()
calibration_gain = 0x60;
expected_xy = 766;
expected_z = 713;
} else if (base_config == NormalOperation | DataOutputRate_75HZ<<2) {
} else if (base_config == (NormalOperation | DataOutputRate_75HZ<<2)) {
product_id = AP_COMPASS_TYPE_HMC5843;
} else {
// not behaving like either supported compass type