Skip to content

Commit

Permalink
enable disabling dowsanmpling #377
Browse files Browse the repository at this point in the history
  • Loading branch information
askuric committed Apr 19, 2024
1 parent 782e719 commit c2c4365
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/base_classes/FOCMotor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void FOCMotor::useMonitoring(Print &print){
// utility function intended to be used with serial plotter to monitor motor variables
// significantly slowing the execution down!!!!
void FOCMotor::monitor() {
if( !monitor_downsample || monitor_cnt++ < monitor_downsample ) return;
if( monitor_cnt++ < monitor_downsample ) return;
monitor_cnt = 0;
if(!monitor_port) return;
bool printed = 0;
Expand Down

0 comments on commit c2c4365

Please sign in to comment.