chiark
/
gitweb
/
~ian
/
hippotat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wip
[hippotat.git]
/
hippotat
/
slip.py
diff --git
a/hippotat/slip.py
b/hippotat/slip.py
index 7dbe3162b8fb4a2347a88f8e61cfe51b9f611300..f13513787857ce7339f91b9dea9d94051fd200fc 100644
(file)
--- a/
hippotat/slip.py
+++ b/
hippotat/slip.py
@@
-27,7
+27,7
@@
def decode(data):
#print('ESC... %o' % ck)
if ck == esc_esc[0]: pdata += esc
elif ck == esc_end[0]: pdata += end
#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))
packet = packet[eix+2 : ]
out.append(pdata)
#print('DECODED ', repr(out))