src/libYARP_dev/galil/winnt/yarp/YARPGalilDeviceDriver.cpp
int YARPGalilDeviceDriver::check_motion_done2 (void *flag)
{
	long rc = 0;
	rc = read_switches (m_buffer_in);
	bool _moving = false;
	int i;
	for(i = 0; i < m_njoints; i++)
		_moving = _moving || ((char) 0x80 & m_buffer_in[i]);

	*(bool *)flag = _moving;
	return rc;
}
//
// flag returns true if motion on all joints has been completed.
// WARNING: improper use of the m_buffer_in as a temporary buffer.
flag returns true if motion on all joints has been completed.
WARNING: improper use of the m_buffer_in as a temporary buffer.
flag returns true if motion on all joints has been completed . WARNING : improper use of the m_buffer_in as a temporary buffer .
int YARPGalilDeviceDriver::check_motion_done2 (void *flag)
{
	long rc = 0;
	rc = read_switches (m_buffer_in);
	bool _moving = false;
	int i;
	for(i = 0; i < m_njoints; i++)
		_moving = _moving || ((char) 0x80 & m_buffer_in[i]);
	*(bool *)flag = _moving;
	return rc;
}
int YARPGalilDeviceDriver :: check_motion_done2 ( void * flag ) { long rc = 0 ; rc = read_switches ( m_buffer_in ) ; bool _moving = false ; int i ; for ( i = 0 ; i < m_njoints ; i ++ ) _moving = _moving || ( ( char ) 0x80 & m_buffer_in [ i ] ) ; * ( bool * ) flag = _moving ; return rc ; }
flag returns true if motion on all joints has been completed.
flag returns true if motion on all joints has been completed .