Skip to content

Commit

Permalink
Use float value for comparison
Browse files Browse the repository at this point in the history
Co-authored-by: Adrian Del Grosso <[email protected]>
  • Loading branch information
martonmiklos and ad3154 committed Jan 17, 2025
1 parent 4e7322c commit c87dbe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OutputNumberComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void OutputNumberComponent::paint(Graphics &g)
}
}

if (get_option(isobus::OutputNumber::Options::DisplayZeroAsBlank) && scaledValue == 0)
if (get_option(isobus::OutputNumber::Options::DisplayZeroAsBlank) && scaledValue == 0.0f)
{
// When this option bit is set, a blank field is displayed if and only if the displayed value of the object is exactly zero.
return;
Expand Down

0 comments on commit c87dbe8

Please sign in to comment.