Modified for compatibility with Rev.E. hardware
Fork of AkmSensor by
Diff: ap1017ctrl.cpp
- Revision:
- 46:5938ad2039b0
- Parent:
- 43:45225713cd58
- Child:
- 47:221ec4b404ec
--- a/ap1017ctrl.cpp Tue Dec 05 23:27:20 2017 +0000 +++ b/ap1017ctrl.cpp Wed Dec 13 23:35:23 2017 +0000 @@ -59,7 +59,7 @@ if(freq > 0) interval = 1/freq; - index = (uint8_t)(100.0/(ap1017->getSpeed())); + index = (uint8_t)(100.0/(double)(ap1017->getSpeed())); MSG("#AP1017: Sensor started with no interval argument.\r\n"); MSG("#AP1017: Speed = %.2f\r\n", ap1017->getSpeed());