added round function to make sure span/center are within the tunning res...

...olution of the device
please move to _state_changed with other similar code, (also this change will fail if span/center are not passed in kwargs)