Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of HMC5883L by
Revision 3:14d274e0f9de, committed 2012-11-06
- Comitter:
- tylerjw
- Date:
- Tue Nov 06 17:25:45 2012 +0000
- Parent:
- 2:8eb755577f83
- Child:
- 4:bc4e1201e092
- Commit message:
- getXYZ changed to int16_t output
Changed in this revision
| HMC5883L.cpp | Show annotated file Show diff for this revision Revisions of this file |
| HMC5883L.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/HMC5883L.cpp Thu Nov 01 18:43:52 2012 +0000
+++ b/HMC5883L.cpp Tue Nov 06 17:25:45 2012 +0000
@@ -117,7 +117,7 @@
return cmd[1];
}
-void HMC5883L::getXYZ(int output[3])
+void HMC5883L::getXYZ(int16_t output[3])
{
char cmd[2];
char data[6];
--- a/HMC5883L.h Thu Nov 01 18:43:52 2012 +0000
+++ b/HMC5883L.h Tue Nov 06 17:25:45 2012 +0000
@@ -196,7 +196,7 @@
*
* @param output buffer that is atleast 3 in length
*/
- void getXYZ(int raw[3]);
+ void getXYZ(int16_t raw[3]);
/**
* Function for retrieving the contents of status register
