summaryrefslogtreecommitdiff
path: root/decoders/rgb_led_spi/pd.py
diff options
context:
space:
mode:
Diffstat (limited to 'decoders/rgb_led_spi/pd.py')
-rw-r--r--decoders/rgb_led_spi/pd.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/decoders/rgb_led_spi/pd.py b/decoders/rgb_led_spi/pd.py
index ca0b113..d7d8e58 100644
--- a/decoders/rgb_led_spi/pd.py
+++ b/decoders/rgb_led_spi/pd.py
@@ -60,9 +60,7 @@ class Decoder(srd.Decoder):
return
red, green, blue = self.mosi_bytes
- rgb_value = int(red) << 16
- rgb_value |= int(green) << 8
- rgb_value |= int(blue)
+ rgb_value = int(red) << 16 | int(green) << 8 | int(blue)
self.cmd_es = es
self.putx([0, ['#%.6x' % rgb_value]])