mirror of
https://github.com/adafruit/Adafruit_TSL2561.git
synced 2025-07-31 01:17:14 +02:00
Added timestamp values
This commit is contained in:
@ -484,7 +484,7 @@ void Adafruit_TSL2561_Unified::getEvent(sensors_event_t *event)
|
||||
event->version = sizeof(sensors_event_t);
|
||||
event->sensor_id = _tsl2561SensorID;
|
||||
event->type = SENSOR_TYPE_LIGHT;
|
||||
event->timestamp = 0;
|
||||
event->timestamp = millis();
|
||||
|
||||
/* Calculate the actual lux value */
|
||||
getLuminosity(&broadband, &ir);
|
||||
|
Reference in New Issue
Block a user