Bläddra i källkod

Fix PLR/M43 warnings (#14333)

Tanguy Pruvot 6 år sedan
förälder
incheckning
be69ec5b32

+ 2
- 2
Marlin/src/HAL/HAL_STM32F1/HAL_Servo_STM32F1.cpp Visa fil

98
   if (!PWM_PIN(pin)) return false;
98
   if (!PWM_PIN(pin)) return false;
99
 
99
 
100
   timer_dev *tdev = PIN_MAP[pin].timer_device;
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
   SET_PWM(pin);
103
   SET_PWM(pin);
104
   servoWrite(pin, 0);
104
   servoWrite(pin, 0);
221
 
221
 
222
 #else
222
 #else
223
 
223
 
224
-  bool libServo::setupSoftPWM(const int32_t pin) {}
224
+  bool libServo::setupSoftPWM(const int32_t pin) { return false; }
225
   void libServo::pwmSetDuty(const uint16_t duty_cycle) {}
225
   void libServo::pwmSetDuty(const uint16_t duty_cycle) {}
226
   void libServo::pauseSoftPWM() {}
226
   void libServo::pauseSoftPWM() {}
227
 
227
 

+ 1
- 1
Marlin/src/feature/power_loss_recovery.cpp Visa fil

278
   // Pretend that all axes are homed
278
   // Pretend that all axes are homed
279
   axis_homed = axis_known_position = xyz_bits;
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
   // Select the previously active tool (with no_move)
283
   // Select the previously active tool (with no_move)
284
   #if EXTRUDERS > 1
284
   #if EXTRUDERS > 1

+ 1
- 1
Marlin/src/gcode/config/M43.cpp Visa fil

114
                       ", stow angle:   ", servo_angles[probe_index][1]
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
     #if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
119
     #if ENABLED(Z_MIN_PROBE_USES_Z_MIN_ENDSTOP_PIN)
120
 
120
 

Laddar…
Avbryt
Spara