Skip to content

Commit 655d798

Browse files
committed
🐛 Variable was too small
1 parent 79ded68 commit 655d798

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

esp8266.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ void handleRoot()
4747
Serial.println("[WebServer] Request: /");
4848

4949
// Read illuminance (lx)
50-
float visible = tsl2561.getLuminosity(TSL2561_VISIBLE);
51-
float full = tsl2561.getLuminosity(TSL2561_FULLSPECTRUM);
52-
float ir = tsl2561.getLuminosity(TSL2561_INFRARED);
50+
uint32_t visible = tsl2561.getLuminosity(TSL2561_VISIBLE);
51+
uint32_t full = tsl2561.getLuminosity(TSL2561_FULLSPECTRUM);
52+
uint32_t ir = tsl2561.getLuminosity(TSL2561_INFRARED);
5353

5454
// Read temperature (°C)
5555
float temperature = readTemperature();

0 commit comments

Comments
 (0)