Moved sleep interval calculations to ble_update_sleep function