Skip to content

Commit

Permalink
Make pulse range vars private
Browse files Browse the repository at this point in the history
These shouldn't be exposed, the public functions act as complete getter/setters.
  • Loading branch information
dmadison committed Jan 4, 2025
1 parent 6dcb9b0 commit ddd9e68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ServoInput.h
Original file line number Diff line number Diff line change
Expand Up @@ -281,13 +281,13 @@ class ServoInputSignal {
*/
long remap(long pulse, long outMin, long outMax) const;

uint16_t pulseMin; ///< filtering range minimum value
uint16_t pulseMax; ///< filtering range maximum value

private:
static ServoInputSignal* head; ///< head of the linked list
ServoInputSignal* next = nullptr; ///< next object in the linked list

uint16_t pulseMin; ///< filtering range minimum value
uint16_t pulseMax; ///< filtering range maximum value

uint16_t lastPulse = 0; ///< the last valid pulse duration
};

Expand Down

0 comments on commit ddd9e68

Please sign in to comment.