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 f796c9d commit 96b0804Copy full SHA for 96b0804
src/common/base_classes/FOCMotor.cpp
@@ -91,7 +91,7 @@ void FOCMotor::useMonitoring(Print &print){
91
// utility function intended to be used with serial plotter to monitor motor variables
92
// significantly slowing the execution down!!!!
93
void FOCMotor::monitor() {
94
- if( monitor_cnt++ < monitor_downsample ) return;
+ if( !monitor_downsample || monitor_cnt++ < (monitor_downsample-1) ) return;
95
monitor_cnt = 0;
96
if(!monitor_port) return;
97
bool printed = 0;
0 commit comments