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.
Diff: Sensors/Comp/HMC5883.cpp
- Revision:
- 21:c2a2e7cbabdd
- Parent:
- 19:40c252b4a792
--- a/Sensors/Comp/HMC5883.cpp Mon Nov 05 09:19:01 2012 +0000
+++ b/Sensors/Comp/HMC5883.cpp Sat Nov 17 11:49:21 2012 +0000
@@ -32,8 +32,8 @@
{
readraw();
for(int i = 0; i < 3; i++) {
- Min[i]= Min[i] < raw[i] ? Min[i] : raw[i]; // after each measurement check if there's a new minimum or maximum
- Max[i]= Max[i] > raw[i] ? Max[i] : raw[i];
+ Min[i] = Min[i] < raw[i] ? Min[i] : raw[i]; // after each measurement check if there's a new minimum or maximum
+ Max[i] = Max[i] > raw[i] ? Max[i] : raw[i];
}
}
