]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/can/pd.py
i2c: Fix corner-case that can occur with LA triggers.
[libsigrokdecode.git] / decoders / can / pd.py
index 5733e18645b4d84a5dc04cd30837dbf31d915ddd..45b7a18400e0b7eb7da8abae3d9a576cc4138407 100644 (file)
@@ -1,5 +1,5 @@
 ##
-## This file is part of the sigrok project.
+## This file is part of the libsigrokdecode project.
 ##
 ## Copyright (C) 2012 Uwe Hermann <uwe@hermann-uwe.de>
 ##
@@ -26,7 +26,7 @@ class Decoder(srd.Decoder):
     api_version = 1
     id = 'can'
     name = 'CAN'
-    longname = 'Controller area network'
+    longname = 'Controller Area Network'
     desc = 'Field bus protocol for distributed realtime control.'
     license = 'gplv2+'
     inputs = ['logic']
@@ -236,7 +236,7 @@ class Decoder(srd.Decoder):
             if can_rx == 0:
                 self.put(0, 0, self.out_ann, [0, ['Start of frame', 'SOF']])
             else:
-                self.put(self.ss, self.es, self.out_ann,
+                self.put(0, 0, self.out_ann,
                          [1, ['Start of frame (SOF) must be a dominant bit']])
 
         # Bits 1-11: Identifier (ID[10..0])