Merge pull request #7368 from thinkyhead/bf_fix_warnings
Patch to fix some compiler warnings
This commit is contained in:
commit
8b0bd44b1e
@ -1014,7 +1014,7 @@ void servo_init() {
|
|||||||
#if ENABLED(NEOPIXEL_RGBW_LED)
|
#if ENABLED(NEOPIXEL_RGBW_LED)
|
||||||
|
|
||||||
const uint32_t color = pixels.Color(r, g, b, w);
|
const uint32_t color = pixels.Color(r, g, b, w);
|
||||||
static int nextLed = 0;
|
static uint16_t nextLed = 0;
|
||||||
|
|
||||||
if (!isSequence)
|
if (!isSequence)
|
||||||
set_neopixel_color(color);
|
set_neopixel_color(color);
|
||||||
@ -5602,12 +5602,14 @@ void home_all_axes() { gcode_G28(true); }
|
|||||||
|
|
||||||
bool G38_pass_fail = false;
|
bool G38_pass_fail = false;
|
||||||
|
|
||||||
// Get direction of move and retract
|
#if ENABLED(PROBE_DOUBLE_TOUCH)
|
||||||
float retract_mm[XYZ];
|
// Get direction of move and retract
|
||||||
LOOP_XYZ(i) {
|
float retract_mm[XYZ];
|
||||||
float dist = destination[i] - current_position[i];
|
LOOP_XYZ(i) {
|
||||||
retract_mm[i] = FABS(dist) < G38_MINIMUM_MOVE ? 0 : home_bump_mm((AxisEnum)i) * (dist > 0 ? -1 : 1);
|
float dist = destination[i] - current_position[i];
|
||||||
}
|
retract_mm[i] = FABS(dist) < G38_MINIMUM_MOVE ? 0 : home_bump_mm((AxisEnum)i) * (dist > 0 ? -1 : 1);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
stepper.synchronize(); // wait until the machine is idle
|
stepper.synchronize(); // wait until the machine is idle
|
||||||
|
|
||||||
@ -5671,7 +5673,7 @@ void home_all_axes() { gcode_G28(true); }
|
|||||||
// If any axis has enough movement, do the move
|
// If any axis has enough movement, do the move
|
||||||
LOOP_XYZ(i)
|
LOOP_XYZ(i)
|
||||||
if (FABS(destination[i] - current_position[i]) >= G38_MINIMUM_MOVE) {
|
if (FABS(destination[i] - current_position[i]) >= G38_MINIMUM_MOVE) {
|
||||||
if (!parser.seenval('F')) feedrate_mm_s = homing_feedrate(i);
|
if (!parser.seenval('F')) feedrate_mm_s = homing_feedrate((AxisEnum)i);
|
||||||
// If G38.2 fails throw an error
|
// If G38.2 fails throw an error
|
||||||
if (!G38_run_probe() && is_38_2) {
|
if (!G38_run_probe() && is_38_2) {
|
||||||
SERIAL_ERROR_START();
|
SERIAL_ERROR_START();
|
||||||
|
@ -88,13 +88,15 @@ static void PCA9632_WriteAllRegisters(const byte addr, const byte regadd, const
|
|||||||
Wire.endTransmission();
|
Wire.endTransmission();
|
||||||
}
|
}
|
||||||
|
|
||||||
static byte PCA9632_ReadRegister(const byte addr, const byte regadd) {
|
#if 0
|
||||||
Wire.beginTransmission(addr);
|
static byte PCA9632_ReadRegister(const byte addr, const byte regadd) {
|
||||||
Wire.write(regadd);
|
Wire.beginTransmission(addr);
|
||||||
const byte value = Wire.read();
|
Wire.write(regadd);
|
||||||
Wire.endTransmission();
|
const byte value = Wire.read();
|
||||||
return value;
|
Wire.endTransmission();
|
||||||
}
|
return value;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
void PCA9632_SetColor(const byte r, const byte g, const byte b) {
|
void PCA9632_SetColor(const byte r, const byte g, const byte b) {
|
||||||
if (!PCA_init) {
|
if (!PCA_init) {
|
||||||
|
@ -1838,7 +1838,6 @@ void kill_screen(const char* lcd_msg) {
|
|||||||
void _lcd_ubl_level_bed();
|
void _lcd_ubl_level_bed();
|
||||||
|
|
||||||
static int16_t ubl_storage_slot = 0,
|
static int16_t ubl_storage_slot = 0,
|
||||||
custom_bed_temp = 50,
|
|
||||||
custom_hotend_temp = 190,
|
custom_hotend_temp = 190,
|
||||||
side_points = 3,
|
side_points = 3,
|
||||||
ubl_fillin_amount = 5,
|
ubl_fillin_amount = 5,
|
||||||
@ -1847,6 +1846,10 @@ void kill_screen(const char* lcd_msg) {
|
|||||||
x_plot = 0,
|
x_plot = 0,
|
||||||
y_plot = 0;
|
y_plot = 0;
|
||||||
|
|
||||||
|
#if HAS_TEMP_BED
|
||||||
|
static int16_t custom_bed_temp = 50;
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* UBL Build Custom Mesh Command
|
* UBL Build Custom Mesh Command
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user