Skip to content

Commit ef40e29

Browse files
author
Andrew England
committed
fixing calibrated, uncalibrated measurements
1 parent 93ac6f5 commit ef40e29

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/AS726X.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -153,33 +153,33 @@ void AS726X::printUncalibratedMeasurements()
153153
{
154154
//Visible readings
155155
Serial.print(" Reading: V[");
156-
Serial.print(getViolet());
156+
Serial.print(getViolet(), 2);
157157
Serial.print("] B[");
158-
Serial.print(getBlue());
158+
Serial.print(getBlue(), 2);
159159
Serial.print("] G[");
160-
Serial.print(getGreen());
160+
Serial.print(getGreen(), 2);
161161
Serial.print("] Y[");
162-
Serial.print(getYellow());
162+
Serial.print(getYellow(), 2);
163163
Serial.print("] O[");
164-
Serial.print(getOrange());
164+
Serial.print(getOrange(), 2);
165165
Serial.print("] R[");
166-
Serial.print(getRed());
166+
Serial.print(getRed(), 2);
167167
}
168168
else if (_sensorVersion == SENSORTYPE_AS7263)
169169
{
170170
//Near IR readings
171171
Serial.print(" Reading: R[");
172-
Serial.print(getR());
172+
Serial.print(getR(), 2);
173173
Serial.print("] S[");
174-
Serial.print(getS());
174+
Serial.print(getS(), 2);
175175
Serial.print("] T[");
176-
Serial.print(getT());
176+
Serial.print(getT(), 2);
177177
Serial.print("] U[");
178-
Serial.print(getU());
178+
Serial.print(getU(), 2);
179179
Serial.print("] V[");
180-
Serial.print(getV());
180+
Serial.print(getV(), 2);
181181
Serial.print("] W[");
182-
Serial.print(getW());
182+
Serial.print(getW(), 2);
183183
}
184184

185185
Serial.print("] tempF[");

0 commit comments

Comments
 (0)