--- a/leds.c
+++ b/leds.c
@@ -76,6 +76,9 @@
   static unsigned char turn=0;
   static unsigned char updatecounter=0;
   static unsigned char onairblink_cnt=0; 
+#ifdef STATISTICS_DISPLAY_BUFFER_STATUS
+  static int buffer_rolling_median=0;
+#endif
 
 #ifdef LEDS_PROFILE_ON
   GPIOG->ODR = GPIO_PIN_0;
@@ -115,7 +118,12 @@
     break;
   case 2:
     PORT_MUX->ODR |= PIN_MUX_RIGHT;
+#ifdef STATISTICS_DISPLAY_BUFFER_STATUS
+    if(buffer_status) buffer_rolling_median = (buffer_rolling_median * 4) / 5 + buffer_status / 5;
+    PORT_LEDS->ODR = buffer_rolling_median / 16;
+#else
     PORT_LEDS->ODR=leds_right;
+#endif
     break;
   }