Skip to content

Commit

Permalink
Release v0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
srgsf committed Nov 25, 2022
1 parent 4874035 commit 68d9287
Show file tree
Hide file tree
Showing 3 changed files with 114 additions and 134 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.1
0.0.2
4 changes: 2 additions & 2 deletions io_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ func Test_FixParity(t *testing.T) {
td := NewTariffDevice(client)
go func() {
buf := make([]byte, 10)
server.Read(buf)
_, _ = server.Read(buf)
resp := []byte("/ABC6dev\r\n")
for i := 0; i < len(resp); i++ {
resp[i] |= 0x80
}
server.Write(resp)
_, _ = server.Write(resp)
if !reflect.DeepEqual(buf[:5], []byte{175, 63, 33, 141, 10}) {
t.Error("Parity encoding failed")
}
Expand Down
Loading

0 comments on commit 68d9287

Please # to comment.