Use constant to set the power mode

Change-Id: I25316680092a2eba34d573bae7366297baa2d4d6