kopia lustrzana https://github.com/Hamlib/Hamlib
Set az/el return values to zero when not supported
rodzic
0b52d2a6c3
commit
429fd1ab89
|
@ -252,6 +252,10 @@ static int prosistel_rot_get_position(ROT *rot, azimuth_t *az, elevation_t *el)
|
||||||
|
|
||||||
*az = (azimuth_t) posval;
|
*az = (azimuth_t) posval;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
*az = 0;
|
||||||
|
}
|
||||||
|
|
||||||
// Query elevation only if the rotator has the capability to do so
|
// Query elevation only if the rotator has the capability to do so
|
||||||
// It is an error to query for elevation if it's not supported by the rotator controller
|
// It is an error to query for elevation if it's not supported by the rotator controller
|
||||||
|
@ -285,6 +289,10 @@ static int prosistel_rot_get_position(ROT *rot, azimuth_t *az, elevation_t *el)
|
||||||
|
|
||||||
*el = (elevation_t) posval;
|
*el = (elevation_t) posval;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
*el = 0;
|
||||||
|
}
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue