Skip to content

Commit

Permalink
Fix to correct return value on Mega2560
Browse files Browse the repository at this point in the history
  • Loading branch information
hjd1964 authored Feb 23, 2021
1 parent ff257c8 commit dcb0ab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Command.ino
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ void processCommands() {
if (p == 0 || p == 1 || (p == 2 && ROTATOR == ON) || (p == 3 && FOCUSER1 == ON) || (p == 4 && FOCUSER2 == ON)) {
axisSettings axis;
nv.readBytes(EE_settingsAxis1+(p*17),(byte*)&axis,sizeof(axis));
sprintf(reply,"%ld.%03d,%d,%d,%d,%d,%d",(long)axis.stepsPerMeasure,(int)(axis.stepsPerMeasure*1000)%1000,axis.microsteps,axis.IRUN,axis.reverse,axis.min,axis.max);
sprintf(reply,"%ld.%03ld,%d,%d,%d,%d,%d",(long)axis.stepsPerMeasure,(long)(axis.stepsPerMeasure*1000)%1000,axis.microsteps,axis.IRUN,axis.reverse,axis.min,axis.max);
boolReply=false;
} else commandError=CE_0;
} else commandError=CE_0;
Expand Down

0 comments on commit dcb0ab5

Please sign in to comment.