Przeglądaj źródła

Fix PLR/M43 warnings (#14333)

Tanguy Pruvot 5 lat temu
rodzic
commit
be69ec5b32

+ 2
- 2
Marlin/src/HAL/HAL_STM32F1/HAL_Servo_STM32F1.cpp Wyświetl plik

@@ -98,7 +98,7 @@ bool libServo::attach(const int32_t pin, const int32_t minAngle, const int32_t m
98 98
   if (!PWM_PIN(pin)) return false;
99 99
 
100 100
   timer_dev *tdev = PIN_MAP[pin].timer_device;
101
-  uint8_t tchan = PIN_MAP[pin].timer_channel;
101
+  //uint8_t tchan = PIN_MAP[pin].timer_channel;
102 102
 
103 103
   SET_PWM(pin);
104 104
   servoWrite(pin, 0);
@@ -221,7 +221,7 @@ void libServo::move(const int32_t value) {
221 221
 
222 222
 #else
223 223
 
224
-  bool libServo::setupSoftPWM(const int32_t pin) {}
224
+  bool libServo::setupSoftPWM(const int32_t pin) { return false; }
225 225
   void libServo::pwmSetDuty(const uint16_t duty_cycle) {}
226 226
   void libServo::pauseSoftPWM() {}
227 227
 

+ 1
- 1
Marlin/src/feature/power_loss_recovery.cpp Wyświetl plik

@@ -278,7 +278,7 @@ void PrintJobRecovery::resume() {
278 278
   // Pretend that all axes are homed
279 279
   axis_homed = axis_known_position = xyz_bits;
280 280
 
281
-  char cmd[50], str_1[16], str_2[16];
281
+  char cmd[MAX_CMD_SIZE+16], str_1[16], str_2[16];
282 282
 
283 283
   // Select the previously active tool (with no_move)
284 284
   #if EXTRUDERS > 1

+ 1
- 1
Marlin/src/gcode/config/M43.cpp Wyświetl plik

@@ -114,7 +114,7 @@ inline void servo_probe_test() {
114 114
                       ", stow angle:   ", servo_angles[probe_index][1]
115 115
     );
116 116
 
117
-    bool deploy_state, stow_state;
117
+    bool deploy_state = false, stow_state;
118 118
 
119 119
     #if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
120 120
 

Ładowanie…
Anuluj
Zapisz