Browse Source

Merge pull request #6519 from thinkyhead/rc_cleanups_2

Various fixes for compiler warnings
pull/1/head
Scott Lahteine 8 years ago
committed by GitHub
parent
commit
984c210dec
  1. 0
      Marlin/Configuration_adv.h
  2. 0
      Marlin/G26_Mesh_Validation_Tool.cpp
  3. 15
      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

15
Marlin/Marlin_main.cpp

@ -2079,8 +2079,8 @@ static void clean_up_after_endstop_or_probe_move() {
*/
#if ENABLED(BLTOUCH_HEATERS_OFF)
bool set_heaters_for_bltouch(const bool deploy) {
static bool heaters_were_disabled = false;
void set_heaters_for_bltouch(const bool deploy) {
static int8_t heaters_were_disabled = 0;
static millis_t next_emi_protection;
static float temps_at_entry[HOTENDS];
@ -2105,6 +2105,7 @@ static void clean_up_after_endstop_or_probe_move() {
#endif
}
else {
next_emi_protection = 0;
HOTEND_LOOP() thermalManager.setTargetHotend(temps_at_entry[e], e);
#if HAS_TEMP_BED
thermalManager.setTargetBed(bed_temp_at_entry);
@ -2115,9 +2116,6 @@ static void clean_up_after_endstop_or_probe_move() {
#endif // BLTOUCH_HEATERS_OFF
void set_bltouch_deployed(const bool deploy) {
#if ENABLED(BLTOUCH_HEATERS_OFF)
set_heaters_for_bltouch(deploy);
#endif
if (deploy && TEST_BLTOUCH()) { // If BL-Touch says it's triggered
bltouch_command(BLTOUCH_RESET); // try to reset it.
bltouch_command(BLTOUCH_DEPLOY); // Also needs to deploy and stow to
@ -2131,6 +2129,9 @@ static void clean_up_after_endstop_or_probe_move() {
stop(); // punt!
}
}
#if ENABLED(BLTOUCH_HEATERS_OFF)
set_heaters_for_bltouch(deploy);
#endif
bltouch_command(deploy ? BLTOUCH_DEPLOY : BLTOUCH_STOW);
#if ENABLED(DEBUG_LEVELING_FEATURE)
if (DEBUGGING(LEVELING)) {
@ -2153,12 +2154,12 @@ static void clean_up_after_endstop_or_probe_move() {
}
#endif
if (endstops.z_probe_enabled == deploy) return false;
#if ENABLED(BLTOUCH) && ENABLED(BLTOUCH_HEATERS_OFF)
set_heaters_for_bltouch(deploy);
#endif
if (endstops.z_probe_enabled == deploy) return false;
// Make room for probe
do_probe_raise(_Z_CLEARANCE_DEPLOY_PROBE);

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