Commit Graph
4 Commits
Author SHA1 Message Date
Samuel Sadok c45ef8934b Change wrap_pm to be based on fmodf
Before this commit, bad user input could cause the device to hang,
that is, no longer respond on USB (other side effects are likely,
though not tested for).

An example of such an input is:

odrv0.axis0.encoder.config.cpr = 10
odrv0.axis0.encoder.config.offset = 20000
2020-04-23 14:38:50 +02:00
Unknown fb46103498 Add doctest, fix drv8301 warning 2020-03-27 21:22:04 -04:00
Unknown cb534ae372 Move gpio helper functions 2020-03-27 21:05:16 -04:00
Unknown 1bdea53ec8 Improve testability 2020-01-08 22:11:50 -05:00