summaryrefslogtreecommitdiff
path: root/decoders/spiflash
diff options
context:
space:
mode:
authorRyan Jarvis <ryan@shopboxretail.com>2019-01-19 00:05:07 -0800
committerUwe Hermann <uwe@hermann-uwe.de>2019-01-30 00:08:39 +0100
commit16d2031b149ff67be83b5600bdf5ad561add312d (patch)
tree242478dfaba1fa4e1542cfa492e328e4f8ffa6d0 /decoders/spiflash
parentf78b814d54b19233d5e3f7cfef3d30a7a5ac8d40 (diff)
downloadlibsigrokdecode-16d2031b149ff67be83b5600bdf5ad561add312d.tar.gz
libsigrokdecode-16d2031b149ff67be83b5600bdf5ad561add312d.zip
Rename values that shadow built-in keywords
Diffstat (limited to 'decoders/spiflash')
-rw-r--r--decoders/spiflash/pd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/decoders/spiflash/pd.py b/decoders/spiflash/pd.py
index aecc2d3..bbdf3fb 100644
--- a/decoders/spiflash/pd.py
+++ b/decoders/spiflash/pd.py
@@ -473,8 +473,8 @@ class Decoder(srd.Decoder):
self.putx([Ann.FIELD, ['%s ID: 0x%02x' % (d, miso)]])
if self.cmdstate == 6:
- id = self.ids[1] if self.manufacturer_id_first else self.ids[0]
- self.device_id = id
+ id_ = self.ids[1] if self.manufacturer_id_first else self.ids[0]
+ self.device_id = id_
self.es_cmd = self.es
self.putc([Ann.REMS, self.cmd_vendor_dev_list()])
self.state = None