Browse Source

Various fixes for compiler warnings

add BLTouch-related messages in english and (rusty) french;
add missing endstops.h in ultralcd.cpp;
fix misc. compiler warnings;
fix lsf_reset - ZERO macro can't handle a pointer as it would only memset the size of the pointer, not the size of the entire struct
pull/1/head
Brian 7 years ago
committed by Scott Lahteine
parent
commit
4e1448e75a
  1. 0
      Marlin/Configuration_adv.h
  2. 0
      Marlin/G26_Mesh_Validation_Tool.cpp
  3. 2
      Marlin/Marlin_main.cpp
  4. 0
      Marlin/configuration_store.cpp
  5. 0
      Marlin/enum.h
  6. 6
      Marlin/language_en.h
  7. 2
      Marlin/language_fr.h
  8. 4
      Marlin/least_squares_fit.cpp
  9. 0
      Marlin/pins_RAMBO.h
  10. 0
      Marlin/platformio.ini
  11. 0
      Marlin/ubl.cpp
  12. 0
      Marlin/ubl.h
  13. 0
      Marlin/ubl_G29.cpp
  14. 0
      Marlin/ubl_motion.cpp
  15. 4
      Marlin/ultralcd.cpp

0
Marlin/Configuration_adv.h

0
Marlin/G26_Mesh_Validation_Tool.cpp

2
Marlin/Marlin_main.cpp

@ -2079,7 +2079,7 @@ static void clean_up_after_endstop_or_probe_move() {
*/
#if ENABLED(BLTOUCH_HEATERS_OFF)
bool set_heaters_for_bltouch(const bool deploy) {
void set_heaters_for_bltouch(const bool deploy) {
static bool heaters_were_disabled = false;
static millis_t next_emi_protection;
static float temps_at_entry[HOTENDS];

0
Marlin/configuration_store.cpp

0
Marlin/enum.h

6
Marlin/language_en.h

@ -417,6 +417,12 @@
#ifndef MSG_BLTOUCH_RESET
#define MSG_BLTOUCH_RESET _UxGT("Reset BLTouch")
#endif
#ifndef MSG_BLTOUCH_DEPLOY
#define MSG_BLTOUCH_DEPLOY _UxGT("Deploy BLTouch")
#endif
#ifndef MSG_BLTOUCH_STOW
#define MSG_BLTOUCH_STOW _UxGT("Stow BLTouch")
#endif
#ifndef MSG_HOME
#define MSG_HOME _UxGT("Home") // Used as MSG_HOME " " MSG_X MSG_Y MSG_Z " " MSG_FIRST
#endif

2
Marlin/language_fr.h

@ -161,6 +161,8 @@
#define MSG_ZPROBE_OUT _UxGT("Z sonde extè. lit")
#define MSG_BLTOUCH_SELFTEST _UxGT("Autotest BLTouch")
#define MSG_BLTOUCH_RESET _UxGT("RaZ BLTouch")
#define MSG_BLTOUCH_DEPLOY _UxGT("Déployer BLTouch")
#define MSG_BLTOUCH_STOW _UxGT("Ranger BLTouch")
#define MSG_HOME _UxGT("Origine") // Used as MSG_HOME " " MSG_X MSG_Y MSG_Z " " MSG_FIRST
#define MSG_FIRST _UxGT("Premier")
#define MSG_ZPROBE_ZOFFSET _UxGT("Décalage Z")

4
Marlin/least_squares_fit.cpp

@ -41,7 +41,9 @@
#include "least_squares_fit.h"
void incremental_LSF_reset(struct linear_fit_data *lsf) { ZERO(lsf); }
void incremental_LSF_reset(struct linear_fit_data *lsf) {
memset(lsf, 0, sizeof(linear_fit_data));
}
void incremental_LSF(struct linear_fit_data *lsf, float x, float y, float z) {
lsf->xbar += x;

0
Marlin/pins_RAMBO.h

0
Marlin/platformio.ini

0
Marlin/ubl.cpp

0
Marlin/ubl.h

0
Marlin/ubl_G29.cpp

0
Marlin/ubl_motion.cpp

4
Marlin/ultralcd.cpp

@ -39,6 +39,10 @@
#include "duration_t.h"
#endif
#if ENABLED(BLTOUCH)
#include "endstops.h"
#endif
int lcd_preheat_hotend_temp[2], lcd_preheat_bed_temp[2], lcd_preheat_fan_speed[2];
#if ENABLED(FILAMENT_LCD_DISPLAY) && ENABLED(SDSUPPORT)

Loading…
Cancel
Save