Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
futzu authored Aug 3, 2024
1 parent 315e242 commit 04fe7d4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions upids.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,14 +101,14 @@ func (upid *Upid) atsc(bd *bitDecoder, upidlen uint8) {

// Decode for EIDR Upid
func (upid *Upid) eidr(bd *bitDecoder, upidlen uint8) {
head := bd.uInt16(16)
// Switching to Compact Binary Format
var astring string
nibbles := 20
for i := 0; i < nibbles; i++ {
astring = fmt.Sprintf("%v%x", astring, bd.uInt8(4))
}
upid.Value = fmt.Sprintf("0x%x%v", head, astring)
head := bd.uInt16(16)
// Switching to Compact Binary Format
var astring string
nibbles := 20
for i := 0; i < nibbles; i++ {
astring = fmt.Sprintf("%v%x", astring, bd.uInt8(4))
}
upid.Value = fmt.Sprintf("0x%x%v", head, astring)
}

// Decode for MPU Upid
Expand Down

0 comments on commit 04fe7d4

Please sign in to comment.