]> sigrok.org Git - libsigrokdecode.git/blobdiff - decoders/ir_irmp/irmp_library.py
ir_irmp: add support for button "release" flag
[libsigrokdecode.git] / decoders / ir_irmp / irmp_library.py
index 22a74b0b3f398478e26cd855f073aabc8de00224..d542a1d8b780351fc2bb7f0a619a56a10ab17160 100644 (file)
@@ -41,6 +41,7 @@ class IrmpLibrary:
         ]
 
     FLAG_REPETITION = 1 << 0
+    FLAG_RELEASE = 1 << 1
 
     def _library_filename(self):
         '''
@@ -103,6 +104,7 @@ class IrmpLibrary:
             'address': self._data.address,
             'command': self._data.command,
             'repeat': bool(self._data.flags & self.FLAG_REPETITION),
+            'release': bool(self._data.flags & self.FLAG_RELEASE),
             'start': self._data.start_sample,
             'end': self._data.end_sample,
         }