Skip to content

Commit ea8eda8

Browse files
committed
typo in transition from void to int
1 parent 05672d2 commit ea8eda8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/BLDCMotor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void BLDCMotor::linkDriver(BLDCDriver* _driver) {
6363
}
6464

6565
// init hardware pins
66-
void BLDCMotor::init() {
66+
int BLDCMotor::init() {
6767
if (!driver || !driver->initialized) {
6868
motor_status = FOCMotorStatus::motor_init_failed;
6969
SIMPLEFOC_DEBUG("MOT: Init not possible, driver not initialized");

src/StepperMotor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ void StepperMotor::linkDriver(StepperDriver* _driver) {
3333
}
3434

3535
// init hardware pins
36-
void StepperMotor::init() {
36+
int StepperMotor::init() {
3737
if (!driver || !driver->initialized) {
3838
motor_status = FOCMotorStatus::motor_init_failed;
3939
SIMPLEFOC_DEBUG("MOT: Init not possible, driver not initialized");

0 commit comments

Comments
 (0)