We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 321a6c6 commit 43d355cCopy full SHA for 43d355c
src/sensors/MagneticSensorPWM.cpp
@@ -43,7 +43,7 @@ MagneticSensorPWM::MagneticSensorPWM(uint8_t _pinPWM, int freqHz, int _total_pwm
43
// define if the sensor uses interrupts
44
is_interrupt_based = false;
45
46
- min_elapsed_time = 1000000/freqHz; // set the minimum time between two readings
+ min_elapsed_time = 1.0f/freqHz; // set the minimum time between two readings
47
48
// define as not set
49
last_call_us = _micros();
0 commit comments