#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))