Skip to content

Commit 00e550e

Browse files
committed
make the old behaviour the default
1 parent 0ec82e3 commit 00e550e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/common/base_classes/FOCMotor.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "FOCMotor.h"
2+
#include "../../communication/SimpleFOCDebug.h"
23

34
/**
45
* Default constructor - setting all variabels to default values
@@ -77,7 +78,8 @@ float FOCMotor::electricalAngle(){
7778
// function implementing the monitor_port setter
7879
void FOCMotor::useMonitoring(Print &print){
7980
monitor_port = &print; //operate on the address of print
80-
if(monitor_port ) monitor_port->println(F("MOT: Monitor enabled!"));
81+
SimpleFOCDebug::enable(&print);
82+
SIMPLEFOC_DEBUG("MOT: Monitor enabled!");
8183
}
8284

8385
// utility function intended to be used with serial plotter to monitor motor variables

0 commit comments

Comments
 (0)