Index: trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.cc
===================================================================
--- trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.cc	(revision 4770)
+++ trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.cc	(revision 4787)
@@ -65,4 +65,7 @@
 // BIT(15): kDeviatingNumPhots   :  The calculated number of calibrated photons deviates too much from the mean - inconsistency
 // BIT(16): kDeviatingFFactor    :  The calculated overall F-Factor deviates too much from the mean - inconsistency
+// BIT(19): kHiGainOverFlow      :  The Hi-Gain calibration histogram showed overflow without saturating the FADC
+// BIT(20): kLoGainOverFlow      :  The Lo-Gain calibration histogram showed overflow 
+//
 //
 // * Set bits leading to not useable low-gain signal:
Index: trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.h
===================================================================
--- trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.h	(revision 4770)
+++ trunk/MagicSoft/Mars/mbadpixels/MBadPixelsPix.h	(revision 4787)
@@ -48,5 +48,7 @@
       kDeviatingFFactor         = BIT(16),
       kDeviatingTimeResolution  = BIT(17),
-      kConversionHiLoNotValid   = BIT(18)
+      kConversionHiLoNotValid   = BIT(18),
+      kHiGainOverFlow           = BIT(19),
+      kLoGainOverFlow           = BIT(20)
     };
     
@@ -98,5 +100,7 @@
       if (IsUncalibrated( kDeviatingFFactor    )) return 8;
       if (IsUncalibrated( kDeviatingNumPhots   )) return 9;
-      return 10;
+      if (IsUncalibrated( kHiGainOverFlow      )) return 10;
+      if (IsUncalibrated( kLoGainOverFlow      )) return 11;
+      return 12;
     }
     
