Skip to content

Commit

Permalink
Fix SPNAV_EVENT_MOTION comparison with maxval
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmayo authored and jtsiomb committed Dec 27, 2023
1 parent 7518e83 commit 1850554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ void MainWin::spnav_input()
switch(ev.type) {
case SPNAV_EVENT_MOTION:
for(int i=0; i<6; i++) {
if(abs(ev.motion.data[i] > maxval)) maxval = abs(ev.motion.data[i]);
if(abs(ev.motion.data[i]) > maxval) maxval = abs(ev.motion.data[i]);
}
for(int i=0; i<6; i++) {
prog_axis[i]->setMinimum(-maxval);
Expand Down

0 comments on commit 1850554

Please sign in to comment.