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 1ad63d1 commit 321a6c6Copy full SHA for 321a6c6
src/sensors/MagneticSensorPWM.cpp
@@ -43,6 +43,8 @@ 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
47
+
48
// define as not set
49
last_call_us = _micros();
50
}
0 commit comments