diff --git a/command_set.go b/command_set.go index d2b598d..095d9c6 100644 --- a/command_set.go +++ b/command_set.go @@ -425,7 +425,7 @@ func (cs *CommandSet) StoreData(typ uint8, data []byte) error { func (cs *CommandSet) FactoryReset() error { cmd := NewCommandFactoryReset() - resp, err := cs.sc.Send(cmd) + resp, err := cs.c.Send(cmd) return cs.checkOK(resp, err) }