Commit 59cd74a
authored
Improve speed integer and rename "speed_pct" to "speed" (#500)
* SpeedInteger -> SpeedValue
* strip out "speed_pct" and use native units everywhere internally
Minimizes rounding.
* Round rather than truncate; test for within minimal rounding error
* no longer needs to be an "integer percentage"
* Install evdev 1.0.0 on Travis as a workaround for build failure1 parent e2dd9a1 commit 59cd74a
4 files changed
Lines changed: 145 additions & 128 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
| 9 | + | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
0 commit comments