hmc5883l: use int16_t as coordinate type throughout

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2014-11-19 11:57:35 +00:00
parent ea7b7a23fa
commit 9ab215b6fd
3 changed files with 7 additions and 7 deletions

View File

@ -31,7 +31,7 @@ main(int argc, char **argv)
{
//! [Interesting]
upm::Hmc5883l* compass = new upm::Hmc5883l(0);
int *pos;
int16_t *pos;
compass->set_declination(0.2749); // Set your declination from true north in radians