From ae8d0ea9f57b126b679edab8cd40430b18a1018b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20Ple=C3=9F?= Date: Sat, 12 Apr 2014 21:43:16 +0200 Subject: [PATCH] changed error message --- sensors2osc/sensors2osc/pulse2osc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sensors2osc/sensors2osc/pulse2osc.py b/sensors2osc/sensors2osc/pulse2osc.py index 29525b0..a9443f2 100644 --- a/sensors2osc/sensors2osc/pulse2osc.py +++ b/sensors2osc/sensors2osc/pulse2osc.py @@ -49,14 +49,14 @@ class RingBuffer(object): self.reset() self.ring_buf[0] = 0 self.head = 1 - raise ValueError("not complete - ringbuffer resettet") + raise ValueError("not complete - reset ringbuffer") data.append(value) if data[0] != 0x0 or data[1] != 0xff: print "issue", data self.reset() self.ring_buf[0] = 0 self.head = 1 - raise ValueError("not synced - ringbuffer resettet") + raise ValueError("not synced - reset ringbuffer") return data[2:] @@ -85,7 +85,7 @@ def main(): except TypeError, e: continue - print "got value", t + #print "got value", t buf.append(t) if t == 0: