chiark / gitweb /
want revert this somehow but the revert of it is buggy
[hippotat.git] / hippotat / slip.py
index 4e841947d53eb4291fbd1c4dc63a46c69f9e616b..e339f6932c50bd465e0f8238e11420f039e2625c 100644 (file)
@@ -27,10 +27,10 @@ def decode(data):
       #print('ESC... %o' % ck)
       if   ck == esc_esc[0]: pdata += esc
       elif ck == esc_end[0]: pdata += end
-      else: raise ValueError('invalid SLIP escape')
+      else: raise ValueError('invalid SLIP escape 0%o %#x' % (ck, ck))
       packet = packet[eix+2 : ]
     out.append(pdata)
-  print('DECODED ', repr(out))
+  #print('DECODED ', repr(out))
   return out
 # -*- python -*-