aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorSelene ToyKeeper2022-04-28 19:08:57 -0600
committerSelene ToyKeeper2022-04-28 19:08:57 -0600
commit33fb935556328449947471f259c646a9c5e94616 (patch)
treed74187737c79adcfddcf037411e0fd63971233b3 /bin
parentmerged sp10-pro shutoff fix and mt35-mini support (diff)
downloadanduril-33fb935556328449947471f259c646a9c5e94616.tar.gz
anduril-33fb935556328449947471f259c646a9c5e94616.tar.bz2
anduril-33fb935556328449947471f259c646a9c5e94616.zip
fixed level_calc.py when using --pwm with 4 args instead of 5
Diffstat (limited to 'bin')
-rwxr-xr-xbin/level_calc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/level_calc.py b/bin/level_calc.py
index 60416db..1ab507c 100755
--- a/bin/level_calc.py
+++ b/bin/level_calc.py
@@ -66,7 +66,7 @@ def main(args):
dpwn_max = int(parts[2])
dpwn_min = int(parts[3])
dpwm_shape = 'linear'
- if parts[4]:
+ if len(parts) > 4:
dpwm_shape = float(parts[4])
max_pwms = [dpwn_min] * answers.num_levels
for i in range(dpwm_steps):