Skip to content

Commit

Permalink
add SetAsDefault API
Browse files Browse the repository at this point in the history
  • Loading branch information
z4yx committed Dec 12, 2019
1 parent d5411d5 commit 5c69ca1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions set_default.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package ykoath

func (o *OATH) SetAsDefault(name string) error {

_, err := o.send(0x00, 0x55, 0x00, 0x00,
write(0x71, []byte(name)),
)

return err

}

0 comments on commit 5c69ca1

Please sign in to comment.