Procházet zdrojové kódy

Supply 'super' for servo subclasses

Scott Lahteine před 4 roky
rodič
revize
b72fd7ea9c

+ 1
- 0
Marlin/src/HAL/HAL_STM32/Servo.h Zobrazit soubor

@@ -31,6 +31,7 @@ class libServo : public Servo {
31 31
     int8_t attach(const int pin, const int min, const int max);
32 32
     void move(const int value);
33 33
   private:
34
+    typedef Servo super;
34 35
     uint16_t min_ticks, max_ticks;
35 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 Zobrazit soubor

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

+ 4
- 3
Marlin/src/HAL/HAL_TEENSY31_32/Servo.h Zobrazit soubor

@@ -30,7 +30,8 @@ class libServo : public Servo {
30 30
     int8_t attach(const int pin, const int min, const int max);
31 31
     void move(const int value);
32 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 Zobrazit soubor

@@ -30,7 +30,8 @@ class libServo : public Servo {
30 30
     int8_t attach(const int pin, const int min, const int max);
31 31
     void move(const int value);
32 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…
Zrušit
Uložit