From 52941b1111631a841a2ff7c5328321fde2c8c6c7 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Wed, 21 Dec 2022 13:09:38 +0100 Subject: [PATCH] Rename xyzcal_meassure_center back to xyzcal_meassure_enter Keep the enter/leave pairs --- Firmware/xyzcal.cpp | 6 +++--- Firmware/xyzcal.h | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Firmware/xyzcal.cpp b/Firmware/xyzcal.cpp index 3982bb50e..28d467c92 100644 --- a/Firmware/xyzcal.cpp +++ b/Firmware/xyzcal.cpp @@ -135,9 +135,9 @@ pos_mm_t pos_2_mm(float pos){ return pos * 0.01f; } -void xyzcal_meassure_center(void) +void xyzcal_meassure_enter(void) { - DBG(_n("xyzcal_meassure_center\n")); + DBG(_n("xyzcal_meassure_enter\n")); lcd_puts_at_P(4,3,PSTR("Measure center ")); ////MSG_MEASURE_CENTER c=16 // disable heaters and stop motion before we initialize sm4 disable_heater(); @@ -1006,7 +1006,7 @@ BedSkewOffsetDetectionResultType xyzcal_scan_and_process(){ BedSkewOffsetDetectionResultType xyzcal_find_bed_induction_sensor_point_xy(void) { // DBG(_n("xyzcal_find_bed_induction_sensor_point_xy x=%ld y=%ld z=%ld\n"), count_position[X_AXIS], count_position[Y_AXIS], count_position[Z_AXIS]); BedSkewOffsetDetectionResultType ret = BED_SKEW_OFFSET_DETECTION_POINT_NOT_FOUND; - xyzcal_meassure_center(); + xyzcal_meassure_enter(); if (xyzcal_searchZ()) ret = xyzcal_scan_and_process(); xyzcal_meassure_leave(); diff --git a/Firmware/xyzcal.h b/Firmware/xyzcal.h index 9b54d1c42..dd0b5860e 100644 --- a/Firmware/xyzcal.h +++ b/Firmware/xyzcal.h @@ -5,8 +5,7 @@ #include "mesh_bed_calibration.h" -extern void xyzcal_meassure_center(void); - +extern void xyzcal_meassure_enter(void); extern void xyzcal_meassure_leave(void); extern bool xyzcal_lineXYZ_to(int16_t x, int16_t y, int16_t z, uint16_t delay_us, int8_t check_pinda);