Skip to content

Commit

Permalink
πŸ§‘β€πŸ’» Use FLT_MAX for HUGE_VALF
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Nov 6, 2023
1 parent 0bdbf52 commit 3341683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ void unified_bed_leveling::shift_mesh_height() {
#endif

#ifndef HUGE_VALF
#define HUGE_VALF (10e100F)
#define HUGE_VALF FLT_MAX

This comment has been minimized.

Copy link
@classicrocker883

classicrocker883 Nov 6, 2023

Contributor

shouldn't it be __FLT_MAX__?

This comment has been minimized.

Copy link
@ellensp

ellensp Nov 6, 2023

Contributor

Agreed. I added this to my PR so that the CI test would run. #26399

#endif

best = do_furthest // Points with valid data or HUGE_VALF are skipped
Expand Down

0 comments on commit 3341683

Please sign in to comment.