Wiring Forum
http://wiring.org.co/cgi-bin/yabb/YaBB.pl
Bugs >> Website,  Reference,  Examples Bugs >> bmp085 example error
http://wiring.org.co/cgi-bin/yabb/YaBB.pl?num=1299388732

Message started by wbp on 03/06/11 at 05:18:52

Title: bmp085 example error
Post by wbp on 03/06/11 at 05:18:52
The line
  b3 = (((int32_t) ac1 * 4 + x3)<<oversampling_setting + 2) >> 2;
should be changed to:
  b3 = ((((int32_t) ac1 * 4 + x3)<<oversampling_setting) + 2) >> 2;

William

Title: Re: bmp085 example error
Post by barragan on 03/06/11 at 20:45:16
hi, right now I don't have one of those to test, what did you get wrong with it?

Wiring Forum » Powered by YaBB 2.5 AE!
YaBB Forum Software © 2000-2010. All Rights Reserved.