Skip to content

Commit

Permalink
Merge branch 'upstream' into tama
Browse files Browse the repository at this point in the history
  • Loading branch information
rinigus committed Apr 7, 2022
2 parents 7d78aa5 + 2e53901 commit c0be870
Show file tree
Hide file tree
Showing 21 changed files with 397 additions and 95 deletions.
2 changes: 1 addition & 1 deletion adaptors/accelerometeradaptor/accelerometeradaptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ void AccelerometerAdaptor::commitOutput(struct input_event *ev)
{
AccelerationData* d = accelerometerBuffer_->nextSlot();

d->timestamp_ = Utils::getTimeStamp(&(ev->time));
d->timestamp_ = Utils::getTimeStamp(ev);
d->x_ = orientationValue_.x_;
d->y_ = orientationValue_.y_;
d->z_ = orientationValue_.z_;
Expand Down
2 changes: 1 addition & 1 deletion adaptors/alsadaptor-evdev/alsevdevadaptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void ALSAdaptorEvdev::commitOutput(struct input_event *ev)
TimedUnsigned* lux = alsBuffer_->nextSlot();
lux->value_ = alsValue_;

lux->timestamp_ = Utils::getTimeStamp(&(ev->time));
lux->timestamp_ = Utils::getTimeStamp(ev);

alsBuffer_->commit();
alsBuffer_->wakeUpReaders();
Expand Down
2 changes: 1 addition & 1 deletion adaptors/gyroscopeadaptor-evdev/gyroevdevadaptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ void GyroAdaptorEvdev::commitOutput(struct input_event *ev)
gyroData->y_ = gyroValue_.y_;
gyroData->z_ = gyroValue_.z_;

gyroData->timestamp_ = Utils::getTimeStamp(&(ev->time));
gyroData->timestamp_ = Utils::getTimeStamp(ev);

gyroscopeBuffer_->commit();
gyroscopeBuffer_->wakeUpReaders();
Expand Down
2 changes: 1 addition & 1 deletion adaptors/humidityadaptor/humidityadaptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void HumidityAdaptor::commitOutput(struct input_event *ev)
TimedUnsigned* rh = humidityBuffer_->nextSlot();
rh->value_ = humidityValue_;

rh->timestamp_ = Utils::getTimeStamp(&(ev->time));
rh->timestamp_ = Utils::getTimeStamp(ev);

humidityBuffer_->commit();
humidityBuffer_->wakeUpReaders();
Expand Down
2 changes: 1 addition & 1 deletion adaptors/lidsensoradaptor-evdev/lidsensoradaptor-evdev.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void LidSensorAdaptorEvdev::commitOutput(struct input_event *ev)

LidData *lidData = lidBuffer_->nextSlot();

lidData->timestamp_ = Utils::getTimeStamp(&(ev->time));
lidData->timestamp_ = Utils::getTimeStamp(ev);
lidData->value_ = currentValue_;
lidData->type_ = currentType_;
sensordLogD() << "Lid state change detected: "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ void MagAdaptorEvdev::commitOutput(struct input_event *ev)
magData->y_ = magValue_.y_;
magData->z_ = magValue_.z_;

magData->timestamp_ = Utils::getTimeStamp(&(ev->time));
magData->timestamp_ = Utils::getTimeStamp(ev);

magnetometerBuffer_->commit();
magnetometerBuffer_->wakeUpReaders();
Expand Down
2 changes: 1 addition & 1 deletion adaptors/pressureadaptor/pressureadaptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void PressureAdaptor::commitOutput(struct input_event *ev)
TimedUnsigned* lux = pressureBuffer_->nextSlot();
lux->value_ = pressureValue_;

lux->timestamp_ = Utils::getTimeStamp(&(ev->time));
lux->timestamp_ = Utils::getTimeStamp(ev);

pressureBuffer_->commit();
pressureBuffer_->wakeUpReaders();
Expand Down
2 changes: 1 addition & 1 deletion adaptors/proximityadaptor-evdev/proximityadaptor-evdev.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ void ProximityAdaptorEvdev::commitOutput(struct input_event *ev)

ProximityData *proximityData = proximityBuffer_->nextSlot();

proximityData->timestamp_ = Utils::getTimeStamp(&(ev->time));
proximityData->timestamp_ = Utils::getTimeStamp(ev);
proximityData->withinProximity_ = currentState_;

oldState = currentState_;
Expand Down
2 changes: 1 addition & 1 deletion adaptors/tapadaptor/tapadaptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void TapAdaptor::interpretEvent(int src, struct input_event *ev)
}
TapData tapValue;
tapValue.direction_ = dir;
tapValue.timestamp_ = Utils::getTimeStamp(&(ev->time));
tapValue.timestamp_ = Utils::getTimeStamp(ev);
tapValue.type_ = TapData::SingleTap;

commitOutput(tapValue);
Expand Down
2 changes: 1 addition & 1 deletion adaptors/temperatureadaptor/temperatureadaptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void TemperatureAdaptor::commitOutput(struct input_event *ev)
TimedUnsigned* temp = temperatureBuffer_->nextSlot();
temp->value_ = temperatureValue_;

temp->timestamp_ = Utils::getTimeStamp(&(ev->time));
temp->timestamp_ = Utils::getTimeStamp(ev);

temperatureBuffer_->commit();
temperatureBuffer_->wakeUpReaders();
Expand Down
2 changes: 1 addition & 1 deletion adaptors/touchadaptor/touchadaptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ void TouchAdaptor::commitOutput(int src, struct input_event *ev)
{
TouchData* d = outputBuffer_->nextSlot();

d->timestamp_ = Utils::getTimeStamp(&(ev->time));
d->timestamp_ = Utils::getTimeStamp(ev);
d->x_ = touchValues_[src].x;
d->y_ = touchValues_[src].y;
d->z_ = touchValues_[src].z;
Expand Down
Loading

0 comments on commit c0be870

Please sign in to comment.