Skip to content

Commit 14c27aa

Browse files
author
Richard Unger
committed
fix STM32 compile problem
1 parent eb5347f commit 14c27aa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/communication/StepDirListener.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@
44
#include "Arduino.h"
55
#include "../common/foc_utils.h"
66

7+
8+
#if defined(_STM32_DEF_)
9+
#define PinStatus int
10+
#endif
11+
12+
713
/**
814
* Step/Dir listenner class for easier interraction with this communication interface.
915
*/
@@ -47,7 +53,7 @@ class StepDirListener
4753
int pin_step; //!< step pin
4854
int pin_dir; //!< direction pin
4955
long count; //!< current counter value - should be set to 0 for homing
50-
int polarity = RISING; //!< polarity of the step pin
56+
PinStatus polarity = RISING; //!< polarity of the step pin
5157

5258
private:
5359
float* attached_variable = nullptr; //!< pointer to the attached variable

0 commit comments

Comments
 (0)