Skip to content

Commit

Permalink
Merge pull request #78 from dev-gto/patch-1
Browse files Browse the repository at this point in the history
Update interleaved stop pattern
  • Loading branch information
boombuler authored Jan 24, 2025
2 parents ca3e24f + 300e9f0 commit 0042f9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion twooffive/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var (
},
true: encodeInfo{ // interleaved
start: []bool{true, false, true, false},
end: []bool{true, true, false, true},
end: []bool{true, true, true, false, true},
widths: map[bool]int{
true: 3,
false: 1,
Expand Down
2 changes: 1 addition & 1 deletion twooffive/encoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@ func Test_Encode(t *testing.T) {
}

testEncode(false, "12345670", "1101101011101010101110101110101011101110111010101010101110101110111010111010101011101110101010101011101110101011101110101101011")
testEncode(true, "12345670", "10101110100010101110001110111010001010001110100011100010101010100011100011101101")
testEncode(true, "12345670", "101011101000101011100011101110100010100011101000111000101010101000111000111011101")
}

0 comments on commit 0042f9a

Please sign in to comment.