From d1744e020b663fb00d5c2433c97eafcfd943a689 Mon Sep 17 00:00:00 2001 From: codeworkx Date: Thu, 21 Jul 2011 13:29:05 -0700 Subject: [PATCH] libsensors: fix x and z conversion of magnetic data --- libsensors/sensors.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsensors/sensors.h b/libsensors/sensors.h index 0b10572..b371edd 100644 --- a/libsensors/sensors.h +++ b/libsensors/sensors.h @@ -118,9 +118,9 @@ __BEGIN_DECLS // conversion of magnetic data to uT units #define CONVERT_M (1.0f/16.0f) -#define CONVERT_M_X (-CONVERT_M) +#define CONVERT_M_X (CONVERT_M) #define CONVERT_M_Y (-CONVERT_M) -#define CONVERT_M_Z (-CONVERT_M) +#define CONVERT_M_Z (CONVERT_M) /* conversion of orientation data to degree units */ #define CONVERT_O (1.0f/64.0f)