From 6cbba91f23b9f9ace75b4722c9c0776b9211008d Mon Sep 17 00:00:00 2001
From: Uwe Hermann <uwe@hermann-uwe.de>
Date: Tue, 2 Apr 2019 21:33:58 +0200
Subject: decoders: Fix incorrect 'outputs' fields.

Only add items to 'outputs' if the respective PD actually has
OUTPUT_PYTHON support implemented as of right now.

Various decoders might get OUTPUT_PYTHON support later, but the
'outputs' field should reflect the current status.
---
 decoders/graycode/pd.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'decoders/graycode')

diff --git a/decoders/graycode/pd.py b/decoders/graycode/pd.py
index 63014a2..055908c 100644
--- a/decoders/graycode/pd.py
+++ b/decoders/graycode/pd.py
@@ -80,7 +80,7 @@ class Decoder(srd.Decoder):
     desc = 'Accumulate rotary encoder increments, provide statistics.'
     license = 'gplv2+'
     inputs = ['logic']
-    outputs = ['graycode']
+    outputs = []
     tags = ['Encoding']
     optional_channels = tuple(
         {'id': 'd{}'.format(i), 'name': 'D{}'.format(i), 'desc': 'Data line {}'.format(i)}
-- 
cgit v1.2.3-70-g09d2