Skip to content

Commit

Permalink
Fix warning: narrowing conversion in JyersUI
Browse files Browse the repository at this point in the history
introduced in commit "🚸 Minor touch calibration improvement (MarlinFirmware#26445)"
  • Loading branch information
classicrocker883 committed Nov 21, 2023
1 parent 3f2df7e commit 8a5faf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/lcd/e3v2/jyersui/dwin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ class TextScroller {

// Draw value text on
if (viewer_print_value) {
xy_int8_t offset { 0, cell_height_px / 2 - 6 };
xy_long_t offset { 0, cell_height_px / 2 - 6 };
if (isnan(bedlevel.z_values[x][y])) { // undefined
dwinDrawString(false, font6x12, COLOR_WHITE, COLOR_BG_BLUE, start_x_px + cell_width_px / 2 - 5, start_y_px + offset.y, F("X"));
}
Expand Down

0 comments on commit 8a5faf1

Please sign in to comment.