Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99513346 authored by Tyler Trephan's avatar Tyler Trephan
Browse files

Setting sensorType in AIDL SensorEvent.

Test: make libsensorservice
Bug: 206867060
Change-Id: Idd123b1a11d86be8b1de12c307f7f3e6809ce724
parent 440d73e0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -238,6 +238,7 @@ void convertFromSensorEvent(const sensors_event_t &src, Event *dst) {
    *dst = {
            .timestamp = src.timestamp,
            .sensorHandle = src.sensor,
            .sensorType = (SensorType) src.type,
    };

    switch (dst->sensorType) {