summaryrefslogtreecommitdiff
path: root/drivers/hmc5983.h
diff options
context:
space:
mode:
authorAtle H. Havsø <atle@havso.net>2014-08-26 17:41:25 +0200
committerAtle H. Havsø <atle@havso.net>2014-08-26 17:41:25 +0200
commit49ca2ac5ad2d2fdfceff94af90c204fe1afe3692 (patch)
tree4d65c0b509c3cd2c6ab7d4490b1ee1e7e9b521f0 /drivers/hmc5983.h
parent3962f09c4d5cd81a0b9bbba18a253259aa05e3a6 (diff)
Convert data from sensors.
Diffstat (limited to 'drivers/hmc5983.h')
-rw-r--r--drivers/hmc5983.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hmc5983.h b/drivers/hmc5983.h
index 9398f23..597aa57 100644
--- a/drivers/hmc5983.h
+++ b/drivers/hmc5983.h
@@ -50,7 +50,7 @@ class HMC5983 {
}
uint8_t update() {
- uint16_t raw_x, raw_y, raw_z;
+ int16_t raw_x, raw_y, raw_z;
uint8_t status;
spi.reg.CR1 = (1 << 9) | (1 <<8) | (1 << 6) | (2 << 3) | (1 << 2) | (1 << 1) | (1 << 0);
spi.reg.CR2 = (1 << 12) | ( 7 << 8);