温度传感器故障时直接关闭加热
This commit is contained in:
parent
dec922fbf6
commit
0800a15966
@ -26,6 +26,10 @@ void main()
|
|||||||
Channel1_Error_Flag = System_Fault; //通道1温度传感器故障
|
Channel1_Error_Flag = System_Fault; //通道1温度传感器故障
|
||||||
// PWM.Heating_Flag1 = System_Fault;
|
// PWM.Heating_Flag1 = System_Fault;
|
||||||
}
|
}
|
||||||
|
else if (ADC.Display_Temp1_Value == 500)
|
||||||
|
{
|
||||||
|
Channel1_Error_Flag = System_Fault; //通道1温度传感器故障
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Channel1_Error_Flag = FALSE;
|
Channel1_Error_Flag = FALSE;
|
||||||
@ -44,6 +48,10 @@ void main()
|
|||||||
Channel2_Error_Flag = System_Fault; //通道2温度传感器故障
|
Channel2_Error_Flag = System_Fault; //通道2温度传感器故障
|
||||||
// PWM.Heating_Flag2 = System_Fault;
|
// PWM.Heating_Flag2 = System_Fault;
|
||||||
}
|
}
|
||||||
|
else if (ADC.Display_Temp2_Value == 500)
|
||||||
|
{
|
||||||
|
Channel2_Error_Flag = System_Fault; //通道1温度传感器故障
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Channel2_Error_Flag = FALSE;
|
Channel2_Error_Flag = FALSE;
|
||||||
|
@ -92,6 +92,7 @@ static void PWM1_HeatingSetting(uint8_t Percent)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
PWM.Heating_Flag1 = System_Fault;
|
PWM.Heating_Flag1 = System_Fault;
|
||||||
|
Temp_Value = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -131,6 +132,7 @@ static void PWM2_HeatingSetting(uint8_t Percent)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
PWM.Heating_Flag2 = System_Fault;
|
PWM.Heating_Flag2 = System_Fault;
|
||||||
|
Temp_Value = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user