mirror of
https://github.com/Lurkki14/tuxclocker.git
synced 2025-02-25 18:55:24 -06:00
fix parametrization logic errors when using extremes
This commit is contained in:
parent
f9a660afee
commit
bbc2e21a51
@ -104,13 +104,13 @@ private:
|
||||
|
||||
if (!leftIndex.has_value()) {
|
||||
// Reading wasn't between points
|
||||
if (reading > m_points.last().y()) {
|
||||
if (reading > m_points.last().x()) {
|
||||
// Use y of rightmost point
|
||||
emitWithType(m_points.last().y());
|
||||
return;
|
||||
} else if (reading < m_points.last().y()) {
|
||||
} else if (reading < m_points.last().x()) {
|
||||
// Leftmost
|
||||
emitWithType(m_points.last().y());
|
||||
emitWithType(m_points.first().y());
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user