added check in set_ramp if start and end attenuation are above/
below devices values

Signed-off-by: Stefan Venz <ikstream86@gmail.com>