Skip to content

Commit

Permalink
Fix warning: narrowing conversion
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 20, 2023
1 parent 7f2c141 commit b707878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/lcd/e3v2/proui/bedlevel_tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ bool BedLevelTools::meshValidate() {
// Draw value text on
const uint8_t fs = DWINUI::fontWidth(meshfont);
if (viewer_print_value) {
xy_int8_t offset { 0, cell_height_px / 2 - fs };
xy_long_t offset { 0, cell_height_px / 2 - fs };
if (isnan(bedlevel.z_values[x][y])) { // undefined
dwinDrawString(false, meshfont, 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 b707878

Please sign in to comment.