From a5c90c3b7dd5e5a376fe66546c2c72b3b0581c39 Mon Sep 17 00:00:00 2001 From: Elara Musayelyan Date: Thu, 25 Nov 2021 13:35:58 -0800 Subject: [PATCH] Fix checkStatus call in (*Device).FS() --- infinitime.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infinitime.go b/infinitime.go index f761d20..9f25897 100644 --- a/infinitime.go +++ b/infinitime.go @@ -672,7 +672,7 @@ func (i *Device) initNotifEvent() error { // FS creates and returns a new filesystem from the device func (i *Device) FS() (*blefs.FS, error) { - if err := i.checkStatus(i.currentTimeChar); err != nil { + if err := i.checkStatus(i.fsTransferChar); err != nil { return nil, err } return blefs.New(i.fsTransferChar)