Now compatible with pickle format 3+

This commit is contained in:
Marat Fayzullin 2023-03-09 20:23:46 -05:00
parent 66ce54726e
commit f1b4cc4ed8
1 changed files with 1 additions and 1 deletions

View File

@ -679,7 +679,7 @@ class DspManager(SdrSourceEventClient, ClientDemodulatorSecondaryDspEventClient)
def unpickler(data):
b = data.tobytes()
# If we know it's not pickled, let us not unpickle
if len(b)<2 or b[0]!=0x80 or b[1]<0x04:
if len(b)<2 or b[0]!=0x80 or b[1]<0x03:
callback(b.decode("ascii"))
else:
io = BytesIO(b)