remove trailing spaces on numerous lines
r1898 | dcl | 2007-04-20 11:56:22 +1000 (Fri, 20 Apr 2007) | 2 lines
This commit is contained in:
@@ -112,7 +112,7 @@ struct __MoDriv {
|
||||
int airpad_state; /**< state of the airpads finite state machine */
|
||||
int airpad_counter; /**< airpad timer retry counter */
|
||||
pNWTimer airpad_timer; /**< timer waiting for airpad action to complete */
|
||||
pNWTimer motor_timer; /**< motor off timer */
|
||||
pNWTimer motoff_timer; /**< motor off timer */
|
||||
int debug;
|
||||
int preseek; /**< Flag = 1 if current move is a backlash preseek */
|
||||
};
|
||||
@@ -887,11 +887,11 @@ static int DMC_AirPads(pDMC2280Driv self, int flag) {
|
||||
* \param context motor data
|
||||
* \param mode
|
||||
*/
|
||||
static int motor_timeout(void* context, int mode) {
|
||||
static int motoff_timeout(void* context, int mode) {
|
||||
pDMC2280Driv self = (pDMC2280Driv) context;
|
||||
char cmd[CMDLEN];
|
||||
|
||||
self->motor_timer = NULL;
|
||||
self->motoff_timer = NULL;
|
||||
if (self->has_airpads) {
|
||||
DMC_AirPads(self, 0);
|
||||
return 0;
|
||||
@@ -1052,9 +1052,9 @@ static int DMC2280Run(void *pData,float fValue){
|
||||
return HWFault;
|
||||
}
|
||||
|
||||
if (self->motor_timer)
|
||||
NetWatchRemoveTimer(self->motor_timer);
|
||||
self->motor_timer = NULL;
|
||||
if (self->motoff_timer)
|
||||
NetWatchRemoveTimer(self->motoff_timer);
|
||||
self->motoff_timer = NULL;
|
||||
|
||||
if (self->settle)
|
||||
self->time_settle_done.tv_sec = 0;
|
||||
@@ -1114,7 +1114,7 @@ static int DMC2280Status(void *pData){
|
||||
* If we are waiting for the motor or airpads then we
|
||||
* are busy
|
||||
*/
|
||||
if (self->motor_timer || self->airpad_timer)
|
||||
if (self->motoff_timer || self->airpad_timer)
|
||||
return HWBusy;
|
||||
|
||||
/* Make sure that speed, accel and decel are set correctly */
|
||||
@@ -1231,9 +1231,9 @@ static int DMC2280Status(void *pData){
|
||||
if (self->airpad_state == AIRPADS_LOWER)
|
||||
return HWBusy;
|
||||
if (self->motOffDelay > 0 ) {
|
||||
NetWatchRegisterTimer(&self->motor_timer,
|
||||
NetWatchRegisterTimer(&self->motoff_timer,
|
||||
self->motOffDelay,
|
||||
motor_timeout, self);
|
||||
motoff_timeout, self);
|
||||
return HWIdle;
|
||||
}
|
||||
if (!DMC_AirPads(self, 0))
|
||||
@@ -1245,9 +1245,9 @@ static int DMC2280Status(void *pData){
|
||||
#if 0
|
||||
snprintf(cmd, CMDLEN, "AT %d; MO%c", self->motOffDelay, self->axisLabel);
|
||||
#else
|
||||
NetWatchRegisterTimer(&self->motor_timer,
|
||||
NetWatchRegisterTimer(&self->motoff_timer,
|
||||
self->motOffDelay,
|
||||
motor_timeout, self);
|
||||
motoff_timeout, self);
|
||||
return HWIdle;
|
||||
#endif
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user