sensor: window_orientation: fix tile_history_time overflow
tilt_history_time is in uint32_t.
When time unit goes from usec to nsec, it overflows in 4.3sec.
Three ways to fix it:
1) change it to uint64_t and increase memory footprint by 0.8KB.
2) rewrite logic to represent time as sample interval.
3) spend a few cycles to convert time to msec internally
To minimize change and verification effort, I picked 3) (approximately).
(cherry picked from commit 5c4f93e3d1243a34627ebf7f06543de90d74f339)
1 file changed