Skip to content

Commit 2b18cac

Browse files
author
Richard Unger
committed
fix StepDirListener PinStatus type problem
1 parent 742924c commit 2b18cac

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/communication/StepDirListener.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
#include "../common/foc_utils.h"
66

77

8-
#if !defined(TARGET_RP2040) && !defined(_SAMD21_) && !defined(_SAMD51_) && !defined(_SAME51_) && !defined(ARDUINO_UNOR4_WIFI) && !defined(ARDUINO_UNOR4_MINIMA) && !defined(NRF52_SERIES) && !defined(ARDUINO_ARCH_MEGAAVR)
9-
#define PinStatus int
10-
#endif
11-
12-
138
/**
149
* Step/Dir listenner class for easier interraction with this communication interface.
1510
*/
@@ -53,7 +48,7 @@ class StepDirListener
5348
int pin_step; //!< step pin
5449
int pin_dir; //!< direction pin
5550
long count; //!< current counter value - should be set to 0 for homing
56-
PinStatus polarity = RISING; //!< polarity of the step pin
51+
decltype(RISING) polarity = RISING; //!< polarity of the step pin
5752

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

0 commit comments

Comments
 (0)