sensor-recorder: fix bug that sleep event is not recording