--- a/main.c
+++ b/main.c
@@ -57,62 +57,46 @@
   * None
   ******************************************************************************
   */
-
-#define MAIN_PROFILING
-
-unsigned short initcounter = 0;
+  volatile short c;
 
 void main(void)
 {
 
-#ifdef MAIN_PROFILING
-  GPIOD->DDR = GPIO_PIN_0;
-  GPIOD->CR1 = GPIO_PIN_0;
-#endif
-
-  
-  InitStatistics();
   
   /* Configures clocks */
   InitCPUSpeed();
 
   /* Configures GPIOs */
   InitLEDS();
- 
+
+  InitVS1053();
+  
+
   UART2_Init((u32)921600, 
  		UART2_WORDLENGTH_8D,
  		UART2_STOPBITS_1, 
  		UART2_PARITY_NO, 
  		UART2_SYNCMODE_CLOCK_DISABLE,
  		UART2_MODE_TXRX_ENABLE);
-  
-  InitRXBuffer();
  
   enableInterrupts();
-
-  InitVS1053Vars();
-  InitVS1053();
-  init_eeprom();
+  
+  
   
   while(1)
-  { 
-    
-#ifdef MAIN_PROFILING
-    GPIOD->ODR |= GPIO_PIN_0;
-#endif 
-    
-    
-    if(RXBuffer_HasBytes()) 
-    { 
-      process_cmd();
-    }
-    
-    cmd_stm();
-    
-#ifdef MAIN_PROFILING                   
-    GPIOD->ODR &= ~GPIO_PIN_0;
-#endif
-    
+  {
+     if(updatevuflag)
+     {
+       updatevuflag = 0;
+       leds_right >>= 1;
+       if(leds_right == 0)
+         leds_right = 0x80;
+       leds_left <<= 1;
+       if(leds_left == 0)
+         leds_left = 0x01;
+       
+     }
+     
   }
 }