File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/motors/HybridStepperMotor Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -33,13 +33,13 @@ void HybridStepperMotor::linkDriver(BLDCDriver *_driver)
3333}
3434
3535// init hardware pins
36- void HybridStepperMotor::init ()
36+ int HybridStepperMotor::init ()
3737{
3838 if (!driver || !driver->initialized )
3939 {
4040 motor_status = FOCMotorStatus::motor_init_failed;
4141 SIMPLEFOC_DEBUG (" MOT: Init not possible, driver not initialized" );
42- return ;
42+ return 0 ;
4343 }
4444 motor_status = FOCMotorStatus::motor_initializing;
4545 SIMPLEFOC_DEBUG (" MOT: Init" );
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ class HybridStepperMotor : public FOCMotor
4242 BLDCDriver *driver;
4343
4444 /* * Motor hardware init function */
45- void init () override ;
45+ int init () override ;
4646 /* * Motor disable function */
4747 void disable () override ;
4848 /* * Motor enable function */
You can’t perform that action at this time.
0 commit comments