f
This commit is contained in:
@@ -919,9 +919,18 @@ def step_to_string(step):
|
||||
ph = pacestringhigh,
|
||||
)
|
||||
elif targettype == 'Cadence':
|
||||
value = step['targetValue']
|
||||
valuelow = step['targetValueLow']
|
||||
valuehigh = step['targetValueHigh']
|
||||
try:
|
||||
value = step['targetValue']
|
||||
except KeyError:
|
||||
value = 0
|
||||
try:
|
||||
valuelow = step['targetValueLow']
|
||||
except KeyError:
|
||||
valuelow = 0
|
||||
try:
|
||||
valuehigh = step['targetValueHigh']
|
||||
except KeyError:
|
||||
valuehigh = 0
|
||||
|
||||
if value != 0:
|
||||
target = 'Target: Cadence at {v} SPM'.format(v=value)
|
||||
|
||||
Reference in New Issue
Block a user