|
@@ -1029,11 +1029,11 @@ void kill_screen(const char* lcd_msg) {
|
1029
|
1029
|
#if ENABLED(BABYSTEP_ZPROBE_OFFSET)
|
1030
|
1030
|
|
1031
|
1031
|
#if ENABLED(BABYSTEP_ZPROBE_GFX_OVERLAY)
|
1032
|
|
- void _lcd_babystep_zoffset_overlay(float zprobe_zoffset) {
|
|
1032
|
+ void _lcd_babystep_zoffset_overlay(const float zprobe_zoffset) {
|
1033
|
1033
|
// Determine whether the user is raising or lowering the nozzle.
|
1034
|
1034
|
static int dir = 0;
|
1035
|
1035
|
static float old_zprobe_zoffset = 0;
|
1036
|
|
- if(zprobe_zoffset != old_zprobe_zoffset) {
|
|
1036
|
+ if (zprobe_zoffset != old_zprobe_zoffset) {
|
1037
|
1037
|
dir = (zprobe_zoffset > old_zprobe_zoffset) ? 1 : -1;
|
1038
|
1038
|
old_zprobe_zoffset = zprobe_zoffset;
|
1039
|
1039
|
}
|
|
@@ -1047,21 +1047,21 @@ void kill_screen(const char* lcd_msg) {
|
1047
|
1047
|
#endif
|
1048
|
1048
|
|
1049
|
1049
|
#if ENABLED(USE_BIG_EDIT_FONT)
|
1050
|
|
- const int left = 0;
|
1051
|
|
- const int right = 45;
|
1052
|
|
- const int nozzle = 95;
|
|
1050
|
+ const int left = 0,
|
|
1051
|
+ right = 45,
|
|
1052
|
+ nozzle = 95;
|
1053
|
1053
|
#else
|
1054
|
|
- const int left = 5;
|
1055
|
|
- const int right = 90;
|
1056
|
|
- const int nozzle = 60;
|
|
1054
|
+ const int left = 5,
|
|
1055
|
+ right = 90,
|
|
1056
|
+ nozzle = 60;
|
1057
|
1057
|
#endif
|
1058
|
1058
|
|
1059
|
1059
|
// Draw a representation of the nozzle
|
1060
|
|
- if(PAGE_CONTAINS(3,16)) u8g.drawBitmapP(nozzle + 6, 4 - dir,2,12,nozzle_bmp);
|
1061
|
|
- if(PAGE_CONTAINS(20,20)) u8g.drawBitmapP(nozzle + 0,20,3,1,offset_bedline_bmp);
|
|
1060
|
+ if (PAGE_CONTAINS(3, 16)) u8g.drawBitmapP(nozzle + 6, 4 - dir, 2, 12, nozzle_bmp);
|
|
1061
|
+ if (PAGE_CONTAINS(20, 20)) u8g.drawBitmapP(nozzle + 0, 20, 3, 1, offset_bedline_bmp);
|
1062
|
1062
|
|
1063
|
1063
|
// Draw cw/ccw indicator and up/down arrows.
|
1064
|
|
- if(PAGE_CONTAINS(47,62)) {
|
|
1064
|
+ if (PAGE_CONTAINS(47, 62)) {
|
1065
|
1065
|
u8g.drawBitmapP(left + 0, 47, 3, 16, rot_down);
|
1066
|
1066
|
u8g.drawBitmapP(right + 0, 47, 3, 16, rot_up);
|
1067
|
1067
|
u8g.drawBitmapP(right + 20, 48 - dir, 2, 13, up_arrow_bmp);
|