Fix up tests, warnings

This commit is contained in:
Scott Lahteine
2020-09-22 19:58:06 -05:00
parent 0b18034055
commit bc081473f2
4 changed files with 11 additions and 10 deletions

View File

@ -192,8 +192,8 @@ void GcodeSuite::M48() {
// Choose the next position as an offset to chosen test position
const xy_pos_t noz_pos = test_position - probe.offset_xy;
xy_pos_t next_pos = {
noz_pos.x + cos(RADIANS(angle)) * radius,
noz_pos.y + sin(RADIANS(angle)) * radius
noz_pos.x + float(cos(RADIANS(angle))) * radius,
noz_pos.y + float(sin(RADIANS(angle))) * radius
};
#if ENABLED(DELTA)

View File

@ -705,7 +705,7 @@ namespace ExtUI {
#if ENABLED(BABYSTEP_ZPROBE_OFFSET)
// Make it so babystepping in Z adjusts the Z probe offset.
if (axis == Z && TERN1(HAS_MULTI_EXTRUDER, linked_nozzles || active_extruder == 0))
if (axis == Z && TERN1(HAS_MULTI_EXTRUDER, (linked_nozzles || active_extruder == 0)))
probe.offset.z += mm;
#endif