Skip to content

Commit

Permalink
typo in transition from void to int
Browse files Browse the repository at this point in the history
  • Loading branch information
askuric committed Jul 21, 2024
1 parent 05672d2 commit ea8eda8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/BLDCMotor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void BLDCMotor::linkDriver(BLDCDriver* _driver) {
}

// init hardware pins
void BLDCMotor::init() {
int BLDCMotor::init() {
if (!driver || !driver->initialized) {
motor_status = FOCMotorStatus::motor_init_failed;
SIMPLEFOC_DEBUG("MOT: Init not possible, driver not initialized");
Expand Down
2 changes: 1 addition & 1 deletion src/StepperMotor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void StepperMotor::linkDriver(StepperDriver* _driver) {
}

// init hardware pins
void StepperMotor::init() {
int StepperMotor::init() {
if (!driver || !driver->initialized) {
motor_status = FOCMotorStatus::motor_init_failed;
SIMPLEFOC_DEBUG("MOT: Init not possible, driver not initialized");
Expand Down

0 comments on commit ea8eda8

Please sign in to comment.