added method FLinkSubDevice getSubdeviceByType(int type) which takes the first device it finds with the given id
FLinkPWM tests now if the frequency is set that it is bigger than 0