Browse Source

Supply 'super' for servo subclasses

Scott Lahteine 5 years ago
parent
commit
b72fd7ea9c

+ 1
- 0
Marlin/src/HAL/HAL_STM32/Servo.h View File

31
     int8_t attach(const int pin, const int min, const int max);
31
     int8_t attach(const int pin, const int min, const int max);
32
     void move(const int value);
32
     void move(const int value);
33
   private:
33
   private:
34
+    typedef Servo super;
34
     uint16_t min_ticks, max_ticks;
35
     uint16_t min_ticks, max_ticks;
35
     uint8_t servoIndex;               // index into the channel data for this servo
36
     uint8_t servoIndex;               // index into the channel data for this servo
36
 };
37
 };

+ 1
- 0
Marlin/src/HAL/HAL_STM32_F4_F7/Servo.h View File

35
     int8_t attach(const int pin, const int min, const int max);
35
     int8_t attach(const int pin, const int min, const int max);
36
     void move(const int value);
36
     void move(const int value);
37
   private:
37
   private:
38
+    typedef Servo super;
38
     uint16_t min_ticks, max_ticks;
39
     uint16_t min_ticks, max_ticks;
39
     uint8_t servoIndex;               // index into the channel data for this servo
40
     uint8_t servoIndex;               // index into the channel data for this servo
40
 };
41
 };

+ 4
- 3
Marlin/src/HAL/HAL_TEENSY31_32/Servo.h View File

30
     int8_t attach(const int pin, const int min, const int max);
30
     int8_t attach(const int pin, const int min, const int max);
31
     void move(const int value);
31
     void move(const int value);
32
   private:
32
   private:
33
-     uint16_t min_ticks;
34
-     uint16_t max_ticks;
35
-     uint8_t servoIndex;               // index into the channel data for this servo
33
+    typedef Servo super;
34
+    uint16_t min_ticks;
35
+    uint16_t max_ticks;
36
+    uint8_t servoIndex;               // index into the channel data for this servo
36
 };
37
 };

+ 4
- 3
Marlin/src/HAL/HAL_TEENSY35_36/Servo.h View File

30
     int8_t attach(const int pin, const int min, const int max);
30
     int8_t attach(const int pin, const int min, const int max);
31
     void move(const int value);
31
     void move(const int value);
32
   private:
32
   private:
33
-     uint16_t min_ticks;
34
-     uint16_t max_ticks;
35
-     uint8_t servoIndex; // Index into the channel data for this servo
33
+    typedef Servo super;
34
+    uint16_t min_ticks;
35
+    uint16_t max_ticks;
36
+    uint8_t servoIndex; // Index into the channel data for this servo
36
 };
37
 };

Loading…
Cancel
Save