mirror of
https://github.com/AntiMicroX/antimicrox.git
synced 2025-12-23 23:29:25 -05:00
fix: Fedora 42 build (#1126)
Fixes build error here: https://koji.fedoraproject.org/koji/taskinfo?taskID=127932100 F42 is coming, and probably there are some C++ standard library changes. You can find the full F42 changelist here: https://fedoraproject.org/wiki/Releases/42/ChangeSet#GNU_Toolchain_Update_(gcc_15,_binutils_2.44,_glibc_2.41,_gdb_15+)
This commit is contained in:
@@ -185,7 +185,7 @@ JoySensorDirection JoyAccelerometerSensor::calculateSensorDirection()
|
||||
bool inPitch = pitch_abs < m_dead_zone;
|
||||
bool inRoll = roll_abs < range;
|
||||
|
||||
if (isnan(roll))
|
||||
if (std::isnan(roll))
|
||||
{
|
||||
return SENSOR_CENTERED;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user