do not apply secure channel to factory reset

This commit is contained in:
Michele Balistreri 2023-06-06 17:31:17 +02:00
parent 0e1c703ad8
commit b33540df70
No known key found for this signature in database
GPG Key ID: E9567DA33A4F791A
1 changed files with 1 additions and 1 deletions

View File

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