From ab253ce768c410f6c996fd3df98292df0554c2f3 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sat, 6 Apr 2019 21:31:11 +0200 Subject: Initial commit --- brother-info/main.go | 207 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 207 insertions(+) create mode 100644 brother-info/main.go (limited to 'brother-info') diff --git a/brother-info/main.go b/brother-info/main.go new file mode 100644 index 0000000..b65b1dc --- /dev/null +++ b/brother-info/main.go @@ -0,0 +1,207 @@ +package main + +import ( + "io" + "log" + "os" + "time" +) + +func decodeBitfieldErrors(b byte, errors [8]string) []string { + var result []string + for i := uint(0); i < 8; i++ { + if b&(1<