fixed some logic that determines if the device moved enough to be updated.