소스 검색

Supply 'super' for servo subclasses

Scott Lahteine 5 년 전
부모
커밋
b72fd7ea9c
4개의 변경된 파일10개의 추가작업 그리고 6개의 파일을 삭제
  1. 1
    0
      Marlin/src/HAL/HAL_STM32/Servo.h
  2. 1
    0
      Marlin/src/HAL/HAL_STM32_F4_F7/Servo.h
  3. 4
    3
      Marlin/src/HAL/HAL_TEENSY31_32/Servo.h
  4. 4
    3
      Marlin/src/HAL/HAL_TEENSY35_36/Servo.h

+ 1
- 0
Marlin/src/HAL/HAL_STM32/Servo.h 파일 보기

@@ -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 파일 보기

@@ -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 파일 보기

@@ -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 파일 보기

@@ -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…
취소
저장