libsensors: fix x and z conversion of magnetic data

This commit is contained in:
codeworkx 2011-07-21 13:29:05 -07:00
parent f677bce86a
commit d1744e020b

View File

@ -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)