From b33540df702da9863cef83dc52fe3a5c883bdd4e Mon Sep 17 00:00:00 2001 From: Michele Balistreri Date: Tue, 6 Jun 2023 17:31:17 +0200 Subject: [PATCH] do not apply secure channel to factory reset --- command_set.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }