Skip to content

Commit

Permalink
Fix SerialUUID parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
raidoz committed Feb 4, 2021
1 parent 653ea57 commit 0d49e43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usersiggen/usersiggen.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import "github.com/satori/go.uuid"

var g_version_major uint8 = 3
var g_version_minor uint8 = 3
var g_version_patch uint8 = 0
var g_version_patch uint8 = 1

const SIGNATURE_TYPE_EUI64 = 0 // EUI64 is the IEEE Extended Unique Identifier
const SIGNATURE_TYPE_BOARD = 1 // Boards are the core of the system - MCU
Expand Down Expand Up @@ -762,7 +762,7 @@ func main() {

var serial [16]byte
if len(opts.SerialUUID) > 0 {
serial, err = uuid.FromString(opts.UUID)
serial, err = uuid.FromString(opts.SerialUUID)
if err != nil {
fmt.Printf("Serial UUID error(%d)", err)
os.Exit(1)
Expand Down

0 comments on commit 0d49e43

Please sign in to comment.