File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/motors/HybridStepperMotor Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,13 @@ void HybridStepperMotor::linkDriver(BLDCDriver *_driver)
33
33
}
34
34
35
35
// init hardware pins
36
- void HybridStepperMotor::init ()
36
+ int HybridStepperMotor::init ()
37
37
{
38
38
if (!driver || !driver->initialized )
39
39
{
40
40
motor_status = FOCMotorStatus::motor_init_failed;
41
41
SIMPLEFOC_DEBUG (" MOT: Init not possible, driver not initialized" );
42
- return ;
42
+ return 0 ;
43
43
}
44
44
motor_status = FOCMotorStatus::motor_initializing;
45
45
SIMPLEFOC_DEBUG (" MOT: Init" );
@@ -70,6 +70,7 @@ void HybridStepperMotor::init()
70
70
_delay (500 );
71
71
72
72
motor_status = FOCMotorStatus::motor_uncalibrated;
73
+ return 1 ;
73
74
}
74
75
75
76
// disable motor driver
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class HybridStepperMotor : public FOCMotor
42
42
BLDCDriver *driver;
43
43
44
44
/* * Motor hardware init function */
45
- void init () override ;
45
+ int init () override ;
46
46
/* * Motor disable function */
47
47
void disable () override ;
48
48
/* * Motor enable function */
You can’t perform that action at this time.
0 commit comments