@@ -184,17 +184,17 @@ void loop()
184184 M5_LOGW (" Detect saturation" );
185185 lux = ct = cratio = 0 ;
186186 }
187- M5_LOGI (" RGB(%3u,%3u,%3u) RGBC:%04X,%04X,%04X,%04X Sat?:%u IR:%d Lux:%.2f CTemp:%.2f CRATIO:%.2f" , unit. R8 () ,
188- unit.G8 (), unit.B8 (), oldest.R16 (), oldest.G16 (), oldest.B16 (), oldest.C16 (),
189- (oldest.C16 () >= saturation), oldest.IR (), lux, ct, cratio);
187+ M5. Log . printf (" RGB(%3u,%3u,%3u) RGBC:%04X,%04X,%04X,%04X Sat?:%u IR:%d Lux:%.2f CTemp:%.2f CRATIO:%.2f\n " ,
188+ unit. R8 (), unit.G8 (), unit.B8 (), oldest.R16 (), oldest.G16 (), oldest.B16 (), oldest.C16 (),
189+ (oldest.C16 () >= saturation), oldest.IR (), lux, ct, cratio);
190190 }
191191
192192 // Single shot
193193 if (M5.BtnA .wasClicked () || touch.wasClicked ()) {
194194 Data d{};
195195 if (unit.stopPeriodicMeasurement () && unit.measureSingleshot (d)) {
196- M5_LOGI (" \t Single: RGB(%3u,%3u,%3u) RGBC:%04X,%04X,%04X,%04X" , d.R8 (), d.G8 (), d.B8 (), d.R16 (), d. G16 (),
197- d.B16 (), d.C16 ());
196+ M5. Log . printf (" \t Single: RGB(%3u,%3u,%3u) RGBC:%04X,%04X,%04X,%04X\n " , d.R8 (), d.G8 (), d.B8 (), d.R16 (),
197+ d. G16 (), d.B16 (), d.C16 ());
198198 unit.startPeriodicMeasurement ();
199199 }
200200 }
0 commit comments