From 146dd69239ebcb0b48003c971c25fa246a6b87f2 Mon Sep 17 00:00:00 2001 From: dev-gto <43351700+dev-gto@users.noreply.github.com> Date: Mon, 12 Jun 2023 10:32:30 -0300 Subject: [PATCH 1/2] Update interleaved stop pattern --- twooffive/encoder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twooffive/encoder.go b/twooffive/encoder.go index 8ad0946..1fe8a99 100644 --- a/twooffive/encoder.go +++ b/twooffive/encoder.go @@ -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, From 300e9f0ce9bf16f1745e5b303ac27fe939c03d5c Mon Sep 17 00:00:00 2001 From: dev-gto <43351700+dev-gto@users.noreply.github.com> Date: Mon, 12 Jun 2023 11:12:37 -0300 Subject: [PATCH 2/2] Update encoder_test.go --- twooffive/encoder_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/twooffive/encoder_test.go b/twooffive/encoder_test.go index 6a529e3..dd43e41 100644 --- a/twooffive/encoder_test.go +++ b/twooffive/encoder_test.go @@ -41,5 +41,5 @@ func Test_Encode(t *testing.T) { } testEncode(false, "12345670", "1101101011101010101110101110101011101110111010101010101110101110111010111010101011101110101010101011101110101011101110101101011") - testEncode(true, "12345670", "10101110100010101110001110111010001010001110100011100010101010100011100011101101") + testEncode(true, "12345670", "101011101000101011100011101110100010100011101000111000101010101000111000111011101") }