Fix showing calibration results.
Messages: _i("XYZ calibration failed. Bed calibration point was not found.") _T(MSG_BED_SKEW_OFFSET_DETECTION_FITTING_FAILED); _i("XYZ calibration failed. Front calibration points not reachable.") _i("XYZ calibration failed. Right front calibration point not reachable.") _i("XYZ calibration failed. Left front calibration point not reachable."); were never shown. Fix compiler warnings: sketch/ultralcd.cpp:3476:19: warning: comparison is always false due to limited range of data type [-Wtype-limits] sketch/ultralcd.cpp:3478:26: warning: comparison is always false due to limited range of data type [-Wtype-limits]
This commit is contained in:
parent
c0f37efbad
commit
e06e19edf5
2 changed files with 3 additions and 2 deletions
|
@ -3470,7 +3470,7 @@ int8_t lcd_show_fullscreen_message_yes_no_and_wait_P(const char *msg, bool allow
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void lcd_bed_calibration_show_result(uint8_t result, uint8_t point_too_far_mask)
|
void lcd_bed_calibration_show_result(BedSkewOffsetDetectionResultType result, uint8_t point_too_far_mask)
|
||||||
{
|
{
|
||||||
const char *msg = NULL;
|
const char *msg = NULL;
|
||||||
if (result == BED_SKEW_OFFSET_DETECTION_POINT_NOT_FOUND) {
|
if (result == BED_SKEW_OFFSET_DETECTION_POINT_NOT_FOUND) {
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
#include "lcd.h"
|
#include "lcd.h"
|
||||||
#include "conv2str.h"
|
#include "conv2str.h"
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
|
#include "mesh_bed_calibration.h"
|
||||||
|
|
||||||
extern int lcd_puts_P(const char* str);
|
extern int lcd_puts_P(const char* str);
|
||||||
extern int lcd_printf_P(const char* format, ...);
|
extern int lcd_printf_P(const char* format, ...);
|
||||||
|
@ -143,7 +144,7 @@ extern const char* lcd_display_message_fullscreen_P(const char *msg);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Show the result of the calibration process on the LCD screen.
|
// Show the result of the calibration process on the LCD screen.
|
||||||
extern void lcd_bed_calibration_show_result(uint8_t result, uint8_t point_too_far_mask);
|
extern void lcd_bed_calibration_show_result(BedSkewOffsetDetectionResultType result, uint8_t point_too_far_mask);
|
||||||
|
|
||||||
extern void lcd_diag_show_end_stops();
|
extern void lcd_diag_show_end_stops();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue