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
This commit is contained in:
Brian
2017-04-30 21:49:00 -04:00
committed by Scott Lahteine
parent fc9919b749
commit 4e1448e75a
15 changed files with 16 additions and 2 deletions

View File

@@ -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;