Fix checkStatus call in (*Device).FS()
This commit is contained in:
parent
0a3ed67ede
commit
a5c90c3b7d
@ -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)
|
||||
|
Reference in New Issue
Block a user