Fix checkStatus call in (*Device).FS()

gatt_localtime
Arsen Musayelyan 1 year ago
parent 58d5036f20
commit bd057815cf

@ -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)

Loading…
Cancel
Save