diff options
| author | Selene ToyKeeper | 2022-04-28 19:08:57 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2022-04-28 19:08:57 -0600 |
| commit | 33fb935556328449947471f259c646a9c5e94616 (patch) | |
| tree | d74187737c79adcfddcf037411e0fd63971233b3 /bin | |
| parent | merged sp10-pro shutoff fix and mt35-mini support (diff) | |
| download | anduril-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 '')
| -rwxr-xr-x | bin/level_calc.py | 2 |
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): |
