Simplify Motorola turning panel on / off code