From: Gerhard Sittig Date: Sat, 29 Jul 2023 15:26:48 +0000 (+0200) Subject: rgb_led_ws281x: default to RGB[W] annotation text order X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=commitdiff_plain;h=e6962b3fe8260382bb9932a1cfdd7ee7090ce267 rgb_led_ws281x: default to RGB[W] annotation text order The earlier default was "RGB" (exactly three components), and users had to manually pick "RGBW" when white was involved. Change the default to the automatic "RGB[W]" instead which transparently presents white when applicable, and doesn't fail when white is not involved. --- diff --git a/decoders/rgb_led_ws281x/pd.py b/decoders/rgb_led_ws281x/pd.py index eda762a..099a2ce 100644 --- a/decoders/rgb_led_ws281x/pd.py +++ b/decoders/rgb_led_ws281x/pd.py @@ -91,7 +91,7 @@ class Decoder(srd.Decoder): 'default': 'GRB', 'values': ('BGR', 'BRG', 'GBR', 'GRB', 'RBG', 'RGB', 'RWBG', 'RGBW')}, {'id': 'textorder', 'desc': 'components output order (text)', - 'default': 'RGB', 'values': ('wire', 'RGB[W]', 'RGB', 'RGBW', 'RGWB')}, + 'default': 'RGB[W]', 'values': ('wire', 'RGB[W]', 'RGB', 'RGBW', 'RGWB')}, ) def __init__(self):