Skip to content

Commit d47243d

Browse files
author
Richard Unger
committed
fix compile of STM32HWEncoder w stm32 2.5
1 parent 9b03b5d commit d47243d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/encoders/stm32hwencoder/STM32HWEncoder.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ class STM32HWEncoder : public Sensor {
5151

5252
TIM_HandleTypeDef encoder_handle;
5353

54-
static constexpr u_int16_t overflow_margin = 20000;
55-
u_int16_t rotations_per_overflow;
56-
u_int16_t ticks_per_overflow;
54+
static constexpr uint16_t overflow_margin = 20000;
55+
uint16_t rotations_per_overflow;
56+
uint16_t ticks_per_overflow;
5757

5858
volatile int32_t overflow_count;
59-
volatile u_int16_t count; //!< current pulse counter
60-
volatile u_int16_t prev_count;
59+
volatile uint16_t count; //!< current pulse counter
60+
volatile uint16_t prev_count;
6161
volatile int32_t prev_overflow_count;
6262

6363
// velocity calculation variables

0 commit comments

Comments
 (0)