Browse Source

Remove extraneous 'extern' hints (#21516)

Scott Lahteine 3 years ago
parent
commit
c2b72c0e73
No account linked to committer's email address
61 changed files with 216 additions and 218 deletions
  1. 2
    2
      Marlin/src/feature/fanmux.h
  2. 2
    2
      Marlin/src/lcd/extui/lib/dgus/DGUSDisplay.h
  3. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_about.h
  4. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_acceleration_settings.h
  5. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_advance_settings.h
  6. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_auto_level_offset_settings.h
  7. 4
    4
      Marlin/src/lcd/extui/lib/mks_ui/draw_baby_stepping.h
  8. 5
    5
      Marlin/src/lcd/extui/lib/mks_ui/draw_change_speed.h
  9. 6
    6
      Marlin/src/lcd/extui/lib/mks_ui/draw_cloud_bind.h
  10. 5
    5
      Marlin/src/lcd/extui/lib/mks_ui/draw_dialog.h
  11. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_eeprom_settings.h
  12. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_encoder_settings.h
  13. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_error_message.h
  14. 7
    7
      Marlin/src/lcd/extui/lib/mks_ui/draw_extrusion.h
  15. 3
    3
      Marlin/src/lcd/extui/lib/mks_ui/draw_fan.h
  16. 4
    4
      Marlin/src/lcd/extui/lib/mks_ui/draw_filament_change.h
  17. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_filament_settings.h
  18. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_gcode.h
  19. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_home.h
  20. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_homing_sensitivity_settings.h
  21. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_jerk_settings.h
  22. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_keyboard.h
  23. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_language.h
  24. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_level_settings.h
  25. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_machine_para.h
  26. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_machine_settings.h
  27. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_manuaLevel.h
  28. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_max_feedrate_settings.h
  29. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_more.h
  30. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_motor_settings.h
  31. 3
    3
      Marlin/src/lcd/extui/lib/mks_ui/draw_move_motor.h
  32. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_number_key.h
  33. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_operation.h
  34. 1
    1
      Marlin/src/lcd/extui/lib/mks_ui/draw_pause_message.h
  35. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_pause_position.h
  36. 5
    5
      Marlin/src/lcd/extui/lib/mks_ui/draw_preHeat.h
  37. 9
    9
      Marlin/src/lcd/extui/lib/mks_ui/draw_print_file.h
  38. 11
    11
      Marlin/src/lcd/extui/lib/mks_ui/draw_printing.h
  39. 8
    8
      Marlin/src/lcd/extui/lib/mks_ui/draw_ready_print.h
  40. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_set.h
  41. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_step_settings.h
  42. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_tmc_current_settings.h
  43. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_tmc_step_mode_settings.h
  44. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_tool.h
  45. 3
    3
      Marlin/src/lcd/extui/lib/mks_ui/draw_touch_calibration.h
  46. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_tramming_pos_settings.h
  47. 1
    1
      Marlin/src/lcd/extui/lib/mks_ui/draw_ui.cpp
  48. 19
    19
      Marlin/src/lcd/extui/lib/mks_ui/draw_ui.h
  49. 3
    3
      Marlin/src/lcd/extui/lib/mks_ui/draw_wifi.h
  50. 5
    5
      Marlin/src/lcd/extui/lib/mks_ui/draw_wifi_list.h
  51. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_wifi_settings.h
  52. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/draw_wifi_tips.h
  53. 8
    8
      Marlin/src/lcd/extui/lib/mks_ui/pic_manager.h
  54. 3
    3
      Marlin/src/lcd/extui/lib/mks_ui/printer_operation.h
  55. 3
    5
      Marlin/src/lcd/extui/lib/mks_ui/tft_lvgl_configuration.cpp
  56. 22
    22
      Marlin/src/lcd/extui/lib/mks_ui/tft_lvgl_configuration.h
  57. 1
    1
      Marlin/src/lcd/extui/lib/mks_ui/tft_multi_language.h
  58. 5
    5
      Marlin/src/lcd/extui/lib/mks_ui/wifi_module.h
  59. 2
    2
      Marlin/src/lcd/extui/lib/mks_ui/wifi_upload.cpp
  60. 1
    1
      Marlin/src/module/servo.h
  61. 1
    1
      Marlin/src/module/tool_change.h

+ 2
- 2
Marlin/src/feature/fanmux.h View File

@@ -25,5 +25,5 @@
25 25
  * feature/fanmux.h - Cooling Fan Multiplexer support functions
26 26
  */
27 27
 
28
-extern void fanmux_switch(const uint8_t e);
29
-extern void fanmux_init();
28
+void fanmux_switch(const uint8_t e);
29
+void fanmux_init();

+ 2
- 2
Marlin/src/lcd/extui/lib/dgus/DGUSDisplay.h View File

@@ -117,7 +117,7 @@ extern DGUSDisplay dgusdisplay;
117 117
 constexpr float cpow(const float x, const int y) { return y == 0 ? 1.0 : x * cpow(x, y - 1); }
118 118
 
119 119
 /// Find the flash address of a DGUS_VP_Variable for the VP.
120
-extern const DGUS_VP_Variable* DGUSLCD_FindVPVar(const uint16_t vp);
120
+const DGUS_VP_Variable* DGUSLCD_FindVPVar(const uint16_t vp);
121 121
 
122 122
 /// Helper to populate a DGUS_VP_Variable for a given VP. Return false if not found.
123
-extern bool populate_VPVar(const uint16_t VP, DGUS_VP_Variable * const ramcopy);
123
+bool populate_VPVar(const uint16_t VP, DGUS_VP_Variable * const ramcopy);

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_about.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_about();
29
-extern void lv_clear_about();
28
+void lv_draw_about();
29
+void lv_clear_about();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_acceleration_settings.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_acceleration_settings();
29
-extern void lv_clear_acceleration_settings();
28
+void lv_draw_acceleration_settings();
29
+void lv_clear_acceleration_settings();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_advance_settings.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_advance_settings();
29
-extern void lv_clear_advance_settings();
28
+void lv_draw_advance_settings();
29
+void lv_clear_advance_settings();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_auto_level_offset_settings.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_auto_level_offset_settings();
29
-extern void lv_clear_auto_level_offset_settings();
28
+void lv_draw_auto_level_offset_settings();
29
+void lv_clear_auto_level_offset_settings();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 4
- 4
Marlin/src/lcd/extui/lib/mks_ui/draw_baby_stepping.h View File

@@ -25,10 +25,10 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_baby_stepping();
29
-extern void lv_clear_baby_stepping();
30
-extern void disp_baby_step_dist();
31
-extern void disp_z_offset_value();
28
+void lv_draw_baby_stepping();
29
+void lv_clear_baby_stepping();
30
+void disp_baby_step_dist();
31
+void disp_z_offset_value();
32 32
 
33 33
 #ifdef __cplusplus
34 34
   } /* C-declarations for C++ */

+ 5
- 5
Marlin/src/lcd/extui/lib/mks_ui/draw_change_speed.h View File

@@ -28,11 +28,11 @@
28 28
 #define MIN_EXT_SPEED_PERCENT    10
29 29
 #define MAX_EXT_SPEED_PERCENT   999
30 30
 
31
-extern void lv_draw_change_speed();
32
-extern void lv_clear_change_speed();
33
-extern void disp_speed_step();
34
-extern void disp_print_speed();
35
-extern void disp_speed_type();
31
+void lv_draw_change_speed();
32
+void lv_clear_change_speed();
33
+void disp_speed_step();
34
+void disp_print_speed();
35
+void disp_speed_type();
36 36
 
37 37
 #ifdef __cplusplus
38 38
   } /* C-declarations for C++ */

+ 6
- 6
Marlin/src/lcd/extui/lib/mks_ui/draw_cloud_bind.h View File

@@ -25,12 +25,12 @@
25 25
 extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_cloud_bind();
29
-extern void lv_clear_cloud_bind();
30
-extern void disp_bind_state();
31
-extern void refresh_bind_ui();
32
-extern void display_qrcode(uint8_t *qrcode_data);
33
-extern void cloud_unbind();
28
+void lv_draw_cloud_bind();
29
+void lv_clear_cloud_bind();
30
+void disp_bind_state();
31
+void refresh_bind_ui();
32
+void display_qrcode(uint8_t *qrcode_data);
33
+void cloud_unbind();
34 34
 
35 35
 #ifdef __cplusplus
36 36
 } /* C-declarations for C++ */

+ 5
- 5
Marlin/src/lcd/extui/lib/mks_ui/draw_dialog.h View File

@@ -74,11 +74,11 @@ enum {
74 74
   DIALOG_TRANSFER_NO_DEVICE
75 75
 };
76 76
 
77
-extern void lv_draw_dialog(uint8_t type);
78
-extern void lv_clear_dialog();
79
-extern void filament_sprayer_temp();
80
-extern void filament_dialog_handle();
81
-extern void lv_filament_setbar();
77
+void lv_draw_dialog(uint8_t type);
78
+void lv_clear_dialog();
79
+void filament_sprayer_temp();
80
+void filament_dialog_handle();
81
+void lv_filament_setbar();
82 82
 
83 83
 #ifdef __cplusplus
84 84
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_eeprom_settings.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_eeprom_settings();
29
-extern void lv_clear_eeprom_settings();
28
+void lv_draw_eeprom_settings();
29
+void lv_clear_eeprom_settings();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_encoder_settings.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_encoder_settings();
29
-extern void lv_clear_encoder_settings();
28
+void lv_draw_encoder_settings();
29
+void lv_clear_encoder_settings();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_error_message.h View File

@@ -29,8 +29,8 @@
29 29
   #define PGM_P const char *
30 30
 #endif
31 31
 
32
-extern void lv_draw_error_message(PGM_P const msg);
33
-extern void lv_clear_error_message();
32
+void lv_draw_error_message(PGM_P const msg);
33
+void lv_clear_error_message();
34 34
 
35 35
 #ifdef __cplusplus
36 36
   } /* C-declarations for C++ */

+ 7
- 7
Marlin/src/lcd/extui/lib/mks_ui/draw_extrusion.h View File

@@ -25,13 +25,13 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_extrusion();
29
-extern void lv_clear_extrusion();
30
-extern void disp_ext_type();
31
-extern void disp_ext_step();
32
-extern void disp_ext_speed();
33
-extern void disp_hotend_temp();
34
-extern void disp_extru_amount();
28
+void lv_draw_extrusion();
29
+void lv_clear_extrusion();
30
+void disp_ext_type();
31
+void disp_ext_step();
32
+void disp_ext_speed();
33
+void disp_hotend_temp();
34
+void disp_extru_amount();
35 35
 
36 36
 #ifdef __cplusplus
37 37
   } /* C-declarations for C++ */

+ 3
- 3
Marlin/src/lcd/extui/lib/mks_ui/draw_fan.h View File

@@ -25,9 +25,9 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_fan();
29
-extern void lv_clear_fan();
30
-extern void disp_fan_value();
28
+void lv_draw_fan();
29
+void lv_clear_fan();
30
+void disp_fan_value();
31 31
 
32 32
 #ifdef __cplusplus
33 33
   } /* C-declarations for C++ */

+ 4
- 4
Marlin/src/lcd/extui/lib/mks_ui/draw_filament_change.h View File

@@ -25,10 +25,10 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_filament_change();
29
-extern void lv_clear_filament_change();
30
-extern void disp_filament_type();
31
-extern void disp_filament_temp();
28
+void lv_draw_filament_change();
29
+void lv_clear_filament_change();
30
+void disp_filament_type();
31
+void disp_filament_temp();
32 32
 
33 33
 #ifdef __cplusplus
34 34
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_filament_settings.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_filament_settings();
29
-extern void lv_clear_filament_settings();
28
+void lv_draw_filament_settings();
29
+void lv_clear_filament_settings();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_gcode.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_gcode(bool clear = false);
29
-extern void lv_clear_gcode();
28
+void lv_draw_gcode(bool clear = false);
29
+void lv_clear_gcode();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_home.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_home();
29
-extern void lv_clear_home();
28
+void lv_draw_home();
29
+void lv_clear_home();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_homing_sensitivity_settings.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_homing_sensitivity_settings();
29
-extern void lv_clear_homing_sensitivity_settings();
28
+void lv_draw_homing_sensitivity_settings();
29
+void lv_clear_homing_sensitivity_settings();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_jerk_settings.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_jerk_settings();
29
-extern void lv_clear_jerk_settings();
28
+void lv_draw_jerk_settings();
29
+void lv_clear_jerk_settings();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_keyboard.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_keyboard();
29
-extern void lv_clear_keyboard();
28
+void lv_draw_keyboard();
29
+void lv_clear_keyboard();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_language.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_language();
29
-extern void lv_clear_language();
28
+void lv_draw_language();
29
+void lv_clear_language();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_level_settings.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_level_settings();
29
-extern void lv_clear_level_settings();
28
+void lv_draw_level_settings();
29
+void lv_clear_level_settings();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_machine_para.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_machine_para();
29
-extern void lv_clear_machine_para();
28
+void lv_draw_machine_para();
29
+void lv_clear_machine_para();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_machine_settings.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_machine_settings();
29
-extern void lv_clear_machine_settings();
28
+void lv_draw_machine_settings();
29
+void lv_clear_machine_settings();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_manuaLevel.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_manualLevel();
29
-extern void lv_clear_manualLevel();
28
+void lv_draw_manualLevel();
29
+void lv_clear_manualLevel();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_max_feedrate_settings.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_max_feedrate_settings();
29
-extern void lv_clear_max_feedrate_settings();
28
+void lv_draw_max_feedrate_settings();
29
+void lv_clear_max_feedrate_settings();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_more.h View File

@@ -25,8 +25,8 @@
25 25
 extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_more();
29
-extern void lv_clear_more();
28
+void lv_draw_more();
29
+void lv_clear_more();
30 30
 
31 31
 #ifdef __cplusplus
32 32
 } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_motor_settings.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_motor_settings();
29
-extern void lv_clear_motor_settings();
28
+void lv_draw_motor_settings();
29
+void lv_clear_motor_settings();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 3
- 3
Marlin/src/lcd/extui/lib/mks_ui/draw_move_motor.h View File

@@ -25,9 +25,9 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_move_motor();
29
-extern void lv_clear_move_motor();
30
-extern void disp_move_dist();
28
+void lv_draw_move_motor();
29
+void lv_clear_move_motor();
30
+void disp_move_dist();
31 31
 
32 32
 #ifdef __cplusplus
33 33
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_number_key.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_number_key();
29
-extern void lv_clear_number_key();
28
+void lv_draw_number_key();
29
+void lv_clear_number_key();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_operation.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_operation();
29
-extern void lv_clear_operation();
28
+void lv_draw_operation();
29
+void lv_clear_operation();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 1
- 1
Marlin/src/lcd/extui/lib/mks_ui/draw_pause_message.h View File

@@ -25,7 +25,7 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_pause_message(const PauseMessage msg);
28
+void lv_draw_pause_message(const PauseMessage msg);
29 29
 
30 30
 #ifdef __cplusplus
31 31
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_pause_position.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_pause_position();
29
-extern void lv_clear_pause_position();
28
+void lv_draw_pause_position();
29
+void lv_clear_pause_position();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 5
- 5
Marlin/src/lcd/extui/lib/mks_ui/draw_preHeat.h View File

@@ -25,11 +25,11 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_preHeat();
29
-extern void lv_clear_preHeat();
30
-extern void disp_temp_type();
31
-extern void disp_step_heat();
32
-extern void disp_desire_temp();
28
+void lv_draw_preHeat();
29
+void lv_clear_preHeat();
30
+void disp_temp_type();
31
+void disp_step_heat();
32
+void disp_desire_temp();
33 33
 
34 34
 #ifdef __cplusplus
35 35
   } /* C-declarations for C++ */

+ 9
- 9
Marlin/src/lcd/extui/lib/mks_ui/draw_print_file.h View File

@@ -49,15 +49,15 @@ typedef struct {
49 49
 } LIST_FILE;
50 50
 extern LIST_FILE list_file;
51 51
 
52
-extern void disp_gcode_icon(uint8_t file_num);
53
-extern void lv_draw_print_file();
54
-extern uint32_t lv_open_gcode_file(char *path);
55
-extern void lv_gcode_file_read(uint8_t *data_buf);
56
-extern void lv_close_gcode_file();
57
-extern void cutFileName(char *path, int len, int bytePerLine, char *outStr);
58
-extern int ascii2dec_test(char *ascii);
59
-extern void lv_clear_print_file();
60
-extern void lv_gcode_file_seek(uint32_t pos);
52
+void disp_gcode_icon(uint8_t file_num);
53
+void lv_draw_print_file();
54
+uint32_t lv_open_gcode_file(char *path);
55
+void lv_gcode_file_read(uint8_t *data_buf);
56
+void lv_close_gcode_file();
57
+void cutFileName(char *path, int len, int bytePerLine, char *outStr);
58
+int ascii2dec_test(char *ascii);
59
+void lv_clear_print_file();
60
+void lv_gcode_file_seek(uint32_t pos);
61 61
 
62 62
 #ifdef __cplusplus
63 63
   } /* C-declarations for C++ */

+ 11
- 11
Marlin/src/lcd/extui/lib/mks_ui/draw_printing.h View File

@@ -36,17 +36,17 @@ enum {
36 36
   STOP
37 37
 };
38 38
 
39
-extern void lv_draw_printing();
40
-extern void lv_clear_printing();
41
-extern void disp_ext_temp();
42
-extern void disp_bed_temp();
43
-extern void disp_fan_speed();
44
-extern void disp_print_time();
45
-extern void disp_fan_Zpos();
46
-extern void reset_print_time();
47
-extern void start_print_time();
48
-extern void stop_print_time();
49
-extern void setProBarRate();
39
+void lv_draw_printing();
40
+void lv_clear_printing();
41
+void disp_ext_temp();
42
+void disp_bed_temp();
43
+void disp_fan_speed();
44
+void disp_print_time();
45
+void disp_fan_Zpos();
46
+void reset_print_time();
47
+void start_print_time();
48
+void stop_print_time();
49
+void setProBarRate();
50 50
 
51 51
 #ifdef __cplusplus
52 52
   } /* C-declarations for C++ */

+ 8
- 8
Marlin/src/lcd/extui/lib/mks_ui/draw_ready_print.h View File

@@ -25,14 +25,14 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_ready_print();
29
-extern void mks_disp_test();
30
-extern void disp_Limit_ok();
31
-extern void disp_Limit_error();
32
-extern void disp_det_error();
33
-extern void disp_det_ok();
34
-extern void lv_clear_ready_print();
35
-extern void lv_temp_refr();
28
+void lv_draw_ready_print();
29
+void mks_disp_test();
30
+void disp_Limit_ok();
31
+void disp_Limit_error();
32
+void disp_det_error();
33
+void disp_det_ok();
34
+void lv_clear_ready_print();
35
+void lv_temp_refr();
36 36
 
37 37
 #ifdef __cplusplus
38 38
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_set.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_set();
29
-extern void lv_clear_set();
28
+void lv_draw_set();
29
+void lv_clear_set();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_step_settings.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_step_settings();
29
-extern void lv_clear_step_settings();
28
+void lv_draw_step_settings();
29
+void lv_clear_step_settings();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_tmc_current_settings.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_tmc_current_settings();
29
-extern void lv_clear_tmc_current_settings();
28
+void lv_draw_tmc_current_settings();
29
+void lv_clear_tmc_current_settings();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_tmc_step_mode_settings.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_tmc_step_mode_settings();
29
-extern void lv_clear_tmc_step_mode_settings();
28
+void lv_draw_tmc_step_mode_settings();
29
+void lv_clear_tmc_step_mode_settings();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_tool.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_tool();
29
-extern void lv_clear_tool();
28
+void lv_draw_tool();
29
+void lv_clear_tool();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 3
- 3
Marlin/src/lcd/extui/lib/mks_ui/draw_touch_calibration.h View File

@@ -25,9 +25,9 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_touch_calibration_screen();
29
-extern void lv_clear_touch_calibration_screen();
30
-extern void lv_update_touch_calibration_screen();
28
+void lv_draw_touch_calibration_screen();
29
+void lv_clear_touch_calibration_screen();
30
+void lv_update_touch_calibration_screen();
31 31
 
32 32
 #ifdef __cplusplus
33 33
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_tramming_pos_settings.h View File

@@ -25,8 +25,8 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_tramming_pos_settings();
29
-extern void lv_clear_tramming_pos_settings();
28
+void lv_draw_tramming_pos_settings();
29
+void lv_clear_tramming_pos_settings();
30 30
 
31 31
 #ifdef __cplusplus
32 32
   } /* C-declarations for C++ */

+ 1
- 1
Marlin/src/lcd/extui/lib/mks_ui/draw_ui.cpp View File

@@ -72,7 +72,7 @@ extern bool once_flag;
72 72
 extern uint8_t sel_id;
73 73
 extern lv_group_t *g;
74 74
 
75
-extern void LCD_IO_WriteData(uint16_t RegValue);
75
+void LCD_IO_WriteData(uint16_t RegValue);
76 76
 
77 77
 static const char custom_gcode_command[][100] = {
78 78
   "G29N\nM500",

+ 19
- 19
Marlin/src/lcd/extui/lib/mks_ui/draw_ui.h View File

@@ -442,28 +442,28 @@ extern lv_style_t style_btn_rel;
442 442
 
443 443
 extern lv_point_t line_points[4][2];
444 444
 
445
-extern void gCfgItems_init();
446
-extern void ui_cfg_init();
447
-extern void tft_style_init();
445
+void gCfgItems_init();
446
+void ui_cfg_init();
447
+void tft_style_init();
448 448
 extern char *creat_title_text();
449
-extern void preview_gcode_prehandle(char *path);
450
-extern void update_spi_flash();
451
-extern void update_gcode_command(int addr,uint8_t *s);
452
-extern void get_gcode_command(int addr,uint8_t *d);
453
-extern void lv_serial_capt_hook(void *, uint8_t);
454
-extern void lv_eom_hook(void *);
449
+void preview_gcode_prehandle(char *path);
450
+void update_spi_flash();
451
+void update_gcode_command(int addr,uint8_t *s);
452
+void get_gcode_command(int addr,uint8_t *d);
453
+void lv_serial_capt_hook(void *, uint8_t);
454
+void lv_eom_hook(void *);
455 455
 #if HAS_GCODE_PREVIEW
456
-  extern void disp_pre_gcode(int xpos_pixel, int ypos_pixel);
456
+  void disp_pre_gcode(int xpos_pixel, int ypos_pixel);
457 457
 #endif
458
-extern void GUI_RefreshPage();
459
-extern void clear_cur_ui();
460
-extern void draw_return_ui();
461
-extern void sd_detection();
462
-extern void gCfg_to_spiFlah();
463
-extern void print_time_count();
464
-
465
-extern void LV_TASK_HANDLER();
466
-extern void lv_ex_line(lv_obj_t *line, lv_point_t *points);
458
+void GUI_RefreshPage();
459
+void clear_cur_ui();
460
+void draw_return_ui();
461
+void sd_detection();
462
+void gCfg_to_spiFlah();
463
+void print_time_count();
464
+
465
+void LV_TASK_HANDLER();
466
+void lv_ex_line(lv_obj_t *line, lv_point_t *points);
467 467
 
468 468
 #ifdef __cplusplus
469 469
   } /* C-declarations for C++ */

+ 3
- 3
Marlin/src/lcd/extui/lib/mks_ui/draw_wifi.h View File

@@ -26,9 +26,9 @@
26 26
 #endif
27 27
 
28 28
 
29
-extern void lv_draw_wifi();
30
-extern void lv_clear_wifi();
31
-extern void disp_wifi_state();
29
+void lv_draw_wifi();
30
+void lv_clear_wifi();
31
+void disp_wifi_state();
32 32
 
33 33
 #ifdef __cplusplus
34 34
   } /* C-declarations for C++ */

+ 5
- 5
Marlin/src/lcd/extui/lib/mks_ui/draw_wifi_list.h View File

@@ -25,11 +25,11 @@
25 25
   extern "C" { /* C-declarations for C++ */
26 26
 #endif
27 27
 
28
-extern void lv_draw_wifi_list();
29
-extern void lv_clear_wifi_list();
30
-extern void disp_wifi_list();
31
-extern void cutWifiName(char *name, int len,char *outStr);
32
-extern void wifi_scan_handle();
28
+void lv_draw_wifi_list();
29
+void lv_clear_wifi_list();
30
+void disp_wifi_list();
31
+void cutWifiName(char *name, int len,char *outStr);
32
+void wifi_scan_handle();
33 33
 
34 34
 #define NUMBER_OF_PAGE 5
35 35
 

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_wifi_settings.h View File

@@ -28,8 +28,8 @@
28 28
 #define WIFI_AP_TEXT  "AP"
29 29
 #define WIFI_STA_TEXT "STA"
30 30
 
31
-extern void lv_draw_wifi_settings();
32
-extern void lv_clear_wifi_settings();
31
+void lv_draw_wifi_settings();
32
+void lv_clear_wifi_settings();
33 33
 
34 34
 #ifdef __cplusplus
35 35
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/draw_wifi_tips.h View File

@@ -26,8 +26,8 @@
26 26
 #endif
27 27
 
28 28
 
29
-extern void lv_draw_wifi_tips();
30
-extern void lv_clear_wifi_tips();
29
+void lv_draw_wifi_tips();
30
+void lv_clear_wifi_tips();
31 31
 
32 32
 typedef enum {
33 33
   TIPS_TYPE_JOINING,

+ 8
- 8
Marlin/src/lcd/extui/lib/mks_ui/pic_manager.h View File

@@ -154,14 +154,14 @@ typedef struct pic_msg PIC_MSG;
154 154
 #define PIC_SIZE_xM   6
155 155
 #define FONT_SIZE_xM  2
156 156
 
157
-extern void Pic_Read(uint8_t *Pname, uint8_t *P_Rbuff);
158
-extern void Pic_Logo_Read(uint8_t *LogoName,uint8_t *Logo_Rbuff,uint32_t LogoReadsize);
159
-extern void lv_pic_test(uint8_t *P_Rbuff, uint32_t addr, uint32_t size);
160
-extern uint32_t lv_get_pic_addr(uint8_t *Pname);
161
-extern void get_spi_flash_data(const char *rec_buf, int offset, int size);
162
-extern void spi_flash_read_test();
163
-extern void default_view_Read(uint8_t *default_view_Rbuff, uint32_t default_view_Readsize);
164
-extern void flash_view_Read(uint8_t *flash_view_Rbuff, uint32_t flash_view_Readsize);
157
+void Pic_Read(uint8_t *Pname, uint8_t *P_Rbuff);
158
+void Pic_Logo_Read(uint8_t *LogoName,uint8_t *Logo_Rbuff,uint32_t LogoReadsize);
159
+void lv_pic_test(uint8_t *P_Rbuff, uint32_t addr, uint32_t size);
160
+uint32_t lv_get_pic_addr(uint8_t *Pname);
161
+void get_spi_flash_data(const char *rec_buf, int offset, int size);
162
+void spi_flash_read_test();
163
+void default_view_Read(uint8_t *default_view_Rbuff, uint32_t default_view_Readsize);
164
+void flash_view_Read(uint8_t *flash_view_Rbuff, uint32_t flash_view_Readsize);
165 165
 
166 166
 #ifdef __cplusplus
167 167
   } /* C-declarations for C++ */

+ 3
- 3
Marlin/src/lcd/extui/lib/mks_ui/printer_operation.h View File

@@ -27,9 +27,9 @@
27 27
 
28 28
 #define MIN_FILE_PRINTED   100 //5000
29 29
 
30
-extern void printer_state_polling();
31
-extern void filament_pin_setup();
32
-extern void filament_check();
30
+void printer_state_polling();
31
+void filament_pin_setup();
32
+void filament_check();
33 33
 
34 34
 #ifdef __cplusplus
35 35
   } /* C-declarations for C++ */

+ 3
- 5
Marlin/src/lcd/extui/lib/mks_ui/tft_lvgl_configuration.cpp View File

@@ -64,13 +64,13 @@ XPT2046 touch;
64 64
 #endif
65 65
 
66 66
 #if HAS_SPI_FLASH_FONT
67
-  extern void init_gb2312_font();
67
+  void init_gb2312_font();
68 68
 #endif
69 69
 
70 70
 static lv_disp_buf_t disp_buf;
71 71
 lv_group_t*  g;
72 72
 #if ENABLED(SDSUPPORT)
73
-  extern void UpdateAssets();
73
+  void UpdateAssets();
74 74
 #endif
75 75
 uint16_t DeviceCode = 0x9488;
76 76
 extern uint8_t sel_id;
@@ -190,9 +190,7 @@ void tft_lvgl_init() {
190 190
   #endif
191 191
 
192 192
   tft_style_init();
193
-
194 193
   filament_pin_setup();
195
-
196 194
   lv_encoder_pin_init();
197 195
 
198 196
   TERN_(MKS_WIFI_MODULE, mks_wifi_firmware_update());
@@ -211,7 +209,7 @@ void tft_lvgl_init() {
211 209
 
212 210
       strncpy(public_buf_m, recovery.info.sd_filename, sizeof(public_buf_m));
213 211
       card.printLongPath(public_buf_m);
214
-      strncpy(list_file.long_name[sel_id], card.longFilename, sizeof(list_file.long_name[sel_id]));
212
+      strncpy(list_file.long_name[sel_id], card.longFilename, sizeof(list_file.long_name[0]));
215 213
       lv_draw_printing();
216 214
     }
217 215
   #endif

+ 22
- 22
Marlin/src/lcd/extui/lib/mks_ui/tft_lvgl_configuration.h View File

@@ -37,32 +37,32 @@
37 37
 extern uint8_t bmp_public_buf[14 * 1024];
38 38
 extern uint8_t public_buf[513];
39 39
 
40
-extern void tft_lvgl_init();
41
-extern void my_disp_flush(lv_disp_drv_t * disp, const lv_area_t * area, lv_color_t * color_p);
42
-extern bool my_touchpad_read(lv_indev_drv_t * indev_driver, lv_indev_data_t * data);
43
-extern bool my_mousewheel_read(lv_indev_drv_t * indev_drv, lv_indev_data_t * data);
40
+void tft_lvgl_init();
41
+void my_disp_flush(lv_disp_drv_t * disp, const lv_area_t * area, lv_color_t * color_p);
42
+bool my_touchpad_read(lv_indev_drv_t * indev_driver, lv_indev_data_t * data);
43
+bool my_mousewheel_read(lv_indev_drv_t * indev_drv, lv_indev_data_t * data);
44 44
 
45
-extern void LCD_Clear(uint16_t Color);
46
-extern void tft_set_point(uint16_t x, uint16_t y, uint16_t point);
47
-extern void LCD_setWindowArea(uint16_t StartX, uint16_t StartY, uint16_t width, uint16_t heigh);
48
-extern void LCD_WriteRAM_Prepare();
49
-extern void lcd_draw_logo();
50
-extern void lv_encoder_pin_init();
51
-extern void lv_update_encoder();
45
+void LCD_Clear(uint16_t Color);
46
+void tft_set_point(uint16_t x, uint16_t y, uint16_t point);
47
+void LCD_setWindowArea(uint16_t StartX, uint16_t StartY, uint16_t width, uint16_t heigh);
48
+void LCD_WriteRAM_Prepare();
49
+void lcd_draw_logo();
50
+void lv_encoder_pin_init();
51
+void lv_update_encoder();
52 52
 
53
-extern lv_fs_res_t spi_flash_open_cb (lv_fs_drv_t * drv, void * file_p, const char * path, lv_fs_mode_t mode);
54
-extern lv_fs_res_t spi_flash_close_cb (lv_fs_drv_t * drv, void * file_p);
55
-extern lv_fs_res_t spi_flash_read_cb (lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * br);
56
-extern lv_fs_res_t spi_flash_seek_cb(lv_fs_drv_t * drv, void * file_p, uint32_t pos);
57
-extern lv_fs_res_t spi_flash_tell_cb(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
53
+lv_fs_res_t spi_flash_open_cb(lv_fs_drv_t * drv, void * file_p, const char * path, lv_fs_mode_t mode);
54
+lv_fs_res_t spi_flash_close_cb(lv_fs_drv_t * drv, void * file_p);
55
+lv_fs_res_t spi_flash_read_cb(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * br);
56
+lv_fs_res_t spi_flash_seek_cb(lv_fs_drv_t * drv, void * file_p, uint32_t pos);
57
+lv_fs_res_t spi_flash_tell_cb(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
58 58
 
59
-extern lv_fs_res_t sd_open_cb (lv_fs_drv_t * drv, void * file_p, const char * path, lv_fs_mode_t mode);
60
-extern lv_fs_res_t sd_close_cb (lv_fs_drv_t * drv, void * file_p);
61
-extern lv_fs_res_t sd_read_cb (lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * br);
62
-extern lv_fs_res_t sd_seek_cb(lv_fs_drv_t * drv, void * file_p, uint32_t pos);
63
-extern lv_fs_res_t sd_tell_cb(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
59
+lv_fs_res_t sd_open_cb(lv_fs_drv_t * drv, void * file_p, const char * path, lv_fs_mode_t mode);
60
+lv_fs_res_t sd_close_cb(lv_fs_drv_t * drv, void * file_p);
61
+lv_fs_res_t sd_read_cb(lv_fs_drv_t * drv, void * file_p, void * buf, uint32_t btr, uint32_t * br);
62
+lv_fs_res_t sd_seek_cb(lv_fs_drv_t * drv, void * file_p, uint32_t pos);
63
+lv_fs_res_t sd_tell_cb(lv_fs_drv_t * drv, void * file_p, uint32_t * pos_p);
64 64
 
65
-extern void lv_fill_rect(lv_coord_t x1, lv_coord_t y1, lv_coord_t x2, lv_coord_t y2, lv_color_t bk_color);
65
+void lv_fill_rect(lv_coord_t x1, lv_coord_t y1, lv_coord_t x2, lv_coord_t y2, lv_color_t bk_color);
66 66
 
67 67
 #ifdef __cplusplus
68 68
   } /* C-declarations for C++ */

+ 1
- 1
Marlin/src/lcd/extui/lib/mks_ui/tft_multi_language.h View File

@@ -29,7 +29,7 @@
29 29
 #include "tft_Language_sp.h"
30 30
 #include "tft_Language_it.h"
31 31
 
32
-extern void disp_language_init();
32
+void disp_language_init();
33 33
 
34 34
 #define LANG_SIMPLE_CHINESE    1
35 35
 #define LANG_COMPLEX_CHINESE   2

+ 5
- 5
Marlin/src/lcd/extui/lib/mks_ui/wifi_module.h View File

@@ -181,16 +181,16 @@ extern WIFI_GCODE_BUFFER espGcodeFifo;
181 181
 extern uint32_t  getWifiTick();
182 182
 extern uint32_t  getWifiTickDiff(int32_t lastTick, int32_t curTick);
183 183
 
184
-extern void mks_esp_wifi_init();
184
+void mks_esp_wifi_init();
185 185
 extern int  cfg_cloud_flag;
186 186
 extern int  send_to_wifi(uint8_t *buf, int len);
187
-extern void wifi_looping();
187
+void wifi_looping();
188 188
 extern int  raw_send_to_wifi(uint8_t *buf, int len);
189 189
 extern int  package_to_wifi(WIFI_RET_TYPE type, uint8_t *buf, int len);
190
-extern void get_wifi_list_command_send();
191
-extern void get_wifi_commands();
190
+void get_wifi_list_command_send();
191
+void get_wifi_commands();
192 192
 extern int  readWifiBuf(int8_t *buf, int32_t len);
193
-extern void mks_wifi_firmware_update();
193
+void mks_wifi_firmware_update();
194 194
 
195 195
 #ifdef __cplusplus
196 196
   } /* C-declarations for C++ */

+ 2
- 2
Marlin/src/lcd/extui/lib/mks_ui/wifi_upload.cpp View File

@@ -39,9 +39,9 @@ extern SZ_USART_FIFO  WifiRxFifo;
39 39
 
40 40
 extern int readUsartFifo(SZ_USART_FIFO *fifo, int8_t *buf, int32_t len);
41 41
 extern int writeUsartFifo(SZ_USART_FIFO * fifo, int8_t * buf, int32_t len);
42
-extern void esp_port_begin(uint8_t interrupt);
42
+void esp_port_begin(uint8_t interrupt);
43 43
 extern int usartFifoAvailable(SZ_USART_FIFO *fifo);
44
-extern void wifi_delay(int n);
44
+void wifi_delay(int n);
45 45
 
46 46
 #define ARRAY_SIZE(a) sizeof(a) / sizeof((a)[0])
47 47
 

+ 1
- 1
Marlin/src/module/servo.h View File

@@ -112,4 +112,4 @@
112 112
 #define MOVE_SERVO(I, P) servo[I].move(P)
113 113
 
114 114
 extern HAL_SERVO_LIB servo[NUM_SERVOS];
115
-extern void servo_init();
115
+void servo_init();

+ 1
- 1
Marlin/src/module/tool_change.h View File

@@ -42,7 +42,7 @@
42 42
   extern toolchange_settings_t toolchange_settings;
43 43
 
44 44
   #if ENABLED(TOOLCHANGE_FILAMENT_SWAP)
45
-    extern void tool_change_prime();
45
+    void tool_change_prime();
46 46
   #endif
47 47
 
48 48
   #if ENABLED(TOOLCHANGE_FS_PRIME_FIRST_USED)

Loading…
Cancel
Save