aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/gen-device-svd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gen-device-svd.py b/tools/gen-device-svd.py
index 990b2080d..ee0165ee7 100755
--- a/tools/gen-device-svd.py
+++ b/tools/gen-device-svd.py
@@ -132,7 +132,7 @@ def readSVD(path, sourceURL):
clusterPrefix = clusterName + '_'
clusterOffset = int(getText(cluster.find('addressOffset')), 0)
if cluster.find('dim') is None:
- if clusterOffset is 0:
+ if clusterOffset == 0:
# make this a separate peripheral
cpRegisters = []
for regEl in cluster.findall('register'):