diff --git a/xy2-100-bsl/pd.py b/xy2-100-bsl/pd.py index 554afb9..3388299 100644 --- a/xy2-100-bsl/pd.py +++ b/xy2-100-bsl/pd.py @@ -184,7 +184,8 @@ class Decoder(srd.Decoder): pos = pos if pos < 131072 else pos - 262144 if(is_y==1): self.y=pos - self.file.write('%d,%d,%d\n' % (self.x, self.y, self.z)) + if self.filename != "": + self.file.write('%d,%d,%d\n' % (self.x, self.y, self.z)) else: self.x=pos # 显示原始位置