fix(drivers/pmw3901): set device_id in sensor_optical_flow (#29618)

The report was published with device_id 0, so the sensor could not be
told apart by bus or type (e.g. sensor_optical_flow consumers and test
tooling matching on devtype). PAW3902 already sets it.

Assisted-by: Claude:claude-opus-5-5

Signed-off-by: Aaron <aaron.s.fuller@gmail.com>
This commit is contained in:
aaronfuller authored and GitHub committed 2026-11-04 11:40:16 -07:00
1 parent 39f254a3f5
commit aca48436c8
1 file changed
+1
@@ -318,6 +318,7 @@ PMW3901::RunImpl()
sensor_optical_flow_s report{};
report.timestamp_sample = timestamp;
report.device_id = get_device_id();
report.pixel_flow[0] = static_cast<float>(delta_x);
report.pixel_flow[1] = static_cast<float>(delta_y);