   int AC_MSBITS5 = temperature - 15;
   int AC_MSBITS6 ;
 
-  if ( air_flow == 0 ) {
-    AC_MSBITS6 = 0;
-  }
+
+
   if ( AC_TYPE == 0) {
+    if ( air_flow == 0 ) {
+      AC_MSBITS6 = 0;
+    }  
     if ( air_flow == 1 ) {
       AC_MSBITS6 = 4;
     }


    if ( a == 5 ) {
      if ( 18 <= b <= 30 ) {
        ac_activate(b, AC_FLOW);
      }
    }
    o_r = r ;

      AC_MSBITS6 = 12;
    }
  } else {
    if ( air_flow == 0 ) {
      AC_MSBITS6 = 0;
    }  
    if ( air_flow == 1 ) {
      AC_MSBITS6 = 2;
    }
