Update Gray code: decode