We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb5347f commit 14c27aaCopy full SHA for 14c27aa
src/communication/StepDirListener.h
@@ -4,6 +4,12 @@
4
#include "Arduino.h"
5
#include "../common/foc_utils.h"
6
7
+
8
+#if defined(_STM32_DEF_)
9
+#define PinStatus int
10
+#endif
11
12
13
/**
14
* Step/Dir listenner class for easier interraction with this communication interface.
15
*/
@@ -47,7 +53,7 @@ class StepDirListener
47
53
int pin_step; //!< step pin
48
54
int pin_dir; //!< direction pin
49
55
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
51
57
52
58
private:
59
float* attached_variable = nullptr; //!< pointer to the attached variable
0 commit comments