Fix setting of temp compensation bit

Fix setting of temp compensation bit