diff --git a/tools/gen-device-svd.py b/tools/gen-device-svd.py index 990b2080..ee0165ee 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'):