//20-05-2024 //------------------------- if(Menu==2) // increment consigne forcée maxi=22.00 { // pas d'action necessaire sur autre BP PIE1bits.INT0IE=0; PIR1bits.INT0IF=0; Etats_BP=0; Mode_Forc=1; if( Mode_En_Cours==1) //mode CONFORT maxi=22.00 { if ( CSG_En_Cours < Max_CFT_csg) CSG_En_Cours= CSG_En_Cours + 0.5; sprintf(CRam1,"SW2 Incr consigne forcee CFT : %3.2f\r\n",CSG_En_Cours); F0=CSG_En_Cours-CFT_csg ; } if( Mode_En_Cours==0) { if ( CSG_En_Cours < Max_ECO_csg) CSG_En_Cours= CSG_En_Cours + 0.5; sprintf(CRam1,"SW2 Incr consigne forcee ECO : %3.2f\r\n", CSG_En_Cours); F0=CSG_En_Cours-ECO_csg ; } if(F0== 0.0) LCD_char15=vide; if(F0>0.1) LCD_char15=fleche_H ;//4 pour choix fleche HAUT if(F0<0.1) LCD_char15=fleche_B ;// pour choix fleche BAS Print(CRam1); Terminaison_Menu_Direct(); } //------------- SW3 ---------------------------- if(Menu==3) //Decr consigne forcee { // pas d'action necessaire sur BP PIE1bits.INT0IE=0; PIR1bits.INT0IF=0; Etats_BP=0; // sprintf(CRam1, " Etats_BP= %02X\t",Etats_BP); // Print(CRam1); Mode_Forc=1; if( Choix_Conf_Eco==1) //mode CONFORT Minima=16.0°C { if (CSG_En_Cours > Min_CFT_csg) CSG_En_Cours= CSG_En_Cours -0.500; sprintf(CRam1,"SW3 Decr consigne forcee CFT : %3.1f\r\n",CSG_En_Cours); F0=CSG_En_Cours - CFT_csg ; } if( Choix_Conf_Eco==0) // Minima=12.0°C { if (CSG_En_Cours > Min_ECO_csg) CSG_En_Cours=CSG_En_Cours - 0.500; sprintf(CRam1,"SW2 DEcr consigne forcee ECO : %3.1f\r\n",CSG_En_Cours); F0=CSG_En_Cours - ECO_csg ; } Print(CRam1); if(F0== 0.0) LCD_char15=' ' ; if(F0>0.1) LCD_char15=4 ;// pour choix fleche HAUT if(F0<0.1) LCD_char15=5 ;// pour choix fleche BAS Terminaison_Menu_Direct(); }