updating Detumbling mode codes