summaryrefslogtreecommitdiff
path: root/drivers/hmc5983.h
diff options
context:
space:
mode:
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);