forked from epics_driver_modules/motorBase
Protect against divide by zero
This commit is contained in:
@@ -388,6 +388,7 @@ STATIC int set_status(int card, int signal)
|
||||
status.Bits.EA_HOME=0;
|
||||
|
||||
/* Motor position */
|
||||
if (resolution == 0.) resolution = 1.;
|
||||
motorData = pos / resolution;
|
||||
|
||||
if (motorData == motor_info->position)
|
||||
|
||||
Reference in New Issue
Block a user