mixup in the order of arguments of Math::clamp()
This commit is contained in:
parent
0caaa2c926
commit
2ab11f1798
1 changed files with 1 additions and 1 deletions
|
@ -577,7 +577,7 @@ int16_t float_to_s16(float v)
|
|||
|
||||
uint8_t float_to_u8(float v)
|
||||
{
|
||||
return static_cast<uint8_t>(Math::clamp(0.0f, 1.0f, v) * 255.0f);
|
||||
return static_cast<uint8_t>(Math::clamp(0.0f, v, 1.0f) * 255.0f);
|
||||
}
|
||||
|
||||
float get_axis_float(XboxGenericMsg& msg, XboxAxis axis)
|
||||
|
|
Loading…
Reference in a new issue