diff --git a/fuse.go b/fuse.go index fa1d855..17cb865 100644 --- a/fuse.go +++ b/fuse.go @@ -251,7 +251,9 @@ type sensorFileReadHandle struct { } var _ = (fs.FileReader)((*sensorFileReadHandle)(nil)) func (fh *sensorFileReadHandle) Read(ctx context.Context, dest []byte, off int64) (fuse.ReadResult, syscall.Errno) { - return nil, 0 + v := <-fh.ch + content := []byte(strconv.Itoa(int(v)) + "\n") + return fuse.ReadResultData(content), 0 }