Skip to content

Commit a7cec89

Browse files
committed
make linkDriver virtual so we can override it
1 parent 9f6e5fd commit a7cec89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BLDCMotor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class BLDCMotor: public FOCMotor
2828
*
2929
* @param driver BLDCDriver class implementing all the hardware specific functions necessary PWM setting
3030
*/
31-
void linkDriver(BLDCDriver* driver);
31+
virtual void linkDriver(BLDCDriver* driver);
3232

3333
/**
3434
* BLDCDriver link:

0 commit comments

Comments
 (0)