Browse Source

Fix an unused var warning

Scott Lahteine 5 years ago
parent
commit
adb7a88428

+ 1
- 3
Marlin/src/HAL/LPC1768/HAL.cpp View File

@@ -67,9 +67,7 @@ int16_t PARSED_PIN_INDEX(const char code, const int16_t dval) {
67 67
   return ind > -1 ? ind : dval;
68 68
 }
69 69
 
70
-void flashFirmware(int16_t value) {
71
-  NVIC_SystemReset();
72
-}
70
+void flashFirmware(const int16_t) { NVIC_SystemReset(); }
73 71
 
74 72
 void HAL_clear_reset_source(void) {
75 73
   #if ENABLED(USE_WATCHDOG)

+ 1
- 1
Marlin/src/HAL/LPC1768/HAL.h View File

@@ -195,7 +195,7 @@ int16_t PARSED_PIN_INDEX(const char code, const int16_t dval);
195 195
 void HAL_idletask();
196 196
 
197 197
 #define PLATFORM_M997_SUPPORT
198
-void flashFirmware(int16_t value);
198
+void flashFirmware(const int16_t);
199 199
 
200 200
 /**
201 201
  * set_pwm_frequency

+ 1
- 1
Marlin/src/HAL/STM32/HAL.cpp View File

@@ -133,6 +133,6 @@ void HAL_adc_start_conversion(const uint8_t adc_pin) { HAL_adc_result = analogRe
133 133
 
134 134
 uint16_t HAL_adc_get_result() { return HAL_adc_result; }
135 135
 
136
-void flashFirmware(int16_t) { NVIC_SystemReset(); }
136
+void flashFirmware(const int16_t) { NVIC_SystemReset(); }
137 137
 
138 138
 #endif // ARDUINO_ARCH_STM32 && !STM32GENERIC

+ 1
- 1
Marlin/src/HAL/STM32/HAL.h View File

@@ -223,4 +223,4 @@ uint16_t HAL_adc_get_result();
223 223
 #define PARSED_PIN_INDEX(code, dval) parser.intval(code, dval)
224 224
 
225 225
 #define PLATFORM_M997_SUPPORT
226
-void flashFirmware(int16_t value);
226
+void flashFirmware(const int16_t);

+ 1
- 1
Marlin/src/HAL/STM32F1/HAL.cpp View File

@@ -388,6 +388,6 @@ void analogWrite(pin_t pin, int pwm_val8) {
388 388
     analogWrite(uint8_t(pin), pwm_val8);
389 389
 }
390 390
 
391
-void flashFirmware(int16_t value) { nvic_sys_reset(); }
391
+void flashFirmware(const int16_t) { nvic_sys_reset(); }
392 392
 
393 393
 #endif // __STM32F1__

+ 1
- 1
Marlin/src/HAL/STM32F1/HAL.h View File

@@ -288,4 +288,4 @@ void analogWrite(pin_t pin, int pwm_val8); // PWM only! mul by 257 in maple!?
288 288
 #define JTAGSWD_DISABLE() afio_cfg_debug_ports(AFIO_DEBUG_NONE)
289 289
 
290 290
 #define PLATFORM_M997_SUPPORT
291
-void flashFirmware(int16_t value);
291
+void flashFirmware(const int16_t);

Loading…
Cancel
Save