     }
     
     prevDeg = currentDeg
+    updateRotationFlag = false
   }
   
   func radiansToDegrees(_ value: Double) -> Double {

  
  
  func updateRotation(_ radian: Double) {
    
    let currentDeg = radiansToDegrees(radian)
    let variation = getVariation(currentDeg)

  let UD_KEY_EFFECT_COLOR_SATURATION = "effect_color_saturation"
  let UD_KEY_LED_DIVIDE = "led_divide"
  let UD_KEY_LED_POSITION = "led_position"
  
  var updateRotationFlag = false
  
  var devices = NSMutableDictionary()
  var colors = NSMutableDictionary()
