From ea8eda83d265f3589a2d0ae6669373641daedf7b Mon Sep 17 00:00:00 2001 From: askuric Date: Sun, 21 Jul 2024 13:25:33 +0200 Subject: [PATCH] typo in transition from void to int --- src/BLDCMotor.cpp | 2 +- src/StepperMotor.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BLDCMotor.cpp b/src/BLDCMotor.cpp index c127949e..501a8bc9 100644 --- a/src/BLDCMotor.cpp +++ b/src/BLDCMotor.cpp @@ -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"); diff --git a/src/StepperMotor.cpp b/src/StepperMotor.cpp index 7b4a5820..1d8f3147 100644 --- a/src/StepperMotor.cpp +++ b/src/StepperMotor.cpp @@ -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");