comment
This commit is contained in:
parent
62906c6685
commit
7f8361ae5b
@ -184,31 +184,31 @@ int main(void)
|
||||
sens[i].set_temp = MB_DATA.HoldRegs.set_Temp[i];
|
||||
MB_DATA.InRegs.sens_Temp[i]=sens[i].temperature*10;
|
||||
|
||||
if (sens[i].temperature<sens[i].set_temp-sens[i].hyst)
|
||||
|
||||
{
|
||||
|
||||
MB_DATA.Coils.coils[0].all|=1<<i;
|
||||
|
||||
}
|
||||
|
||||
else
|
||||
|
||||
if (sens[i].temperature>sens[i].set_temp+sens[i].hyst)
|
||||
{
|
||||
|
||||
MB_DATA.Coils.coils[0].all&=~(1<<i);
|
||||
|
||||
}
|
||||
if(GPIOB11_valve)
|
||||
{
|
||||
GPIOB->ODR|=1<<11;
|
||||
}
|
||||
else
|
||||
{
|
||||
GPIOB->ODR&=~(1<<11);
|
||||
|
||||
}
|
||||
//// if (sens[i].temperature<sens[i].set_temp-sens[i].hyst)
|
||||
////
|
||||
//// {
|
||||
////
|
||||
//// MB_DATA.Coils.coils[0].all|=1<<i;
|
||||
////
|
||||
//// }
|
||||
////
|
||||
//// else
|
||||
////
|
||||
//// if (sens[i].temperature>sens[i].set_temp+sens[i].hyst)
|
||||
//// {
|
||||
////
|
||||
//// MB_DATA.Coils.coils[0].all&=~(1<<i);
|
||||
////
|
||||
//// }
|
||||
//// if(GPIOB11_valve)
|
||||
//// {
|
||||
//// GPIOB->ODR|=1<<11;
|
||||
//// }
|
||||
//// else
|
||||
//// {
|
||||
//// GPIOB->ODR&=~(1<<11);
|
||||
////
|
||||
//// }
|
||||
}
|
||||
|
||||
|
||||
|
@ -133,7 +133,7 @@
|
||||
<UseTargetDll>1</UseTargetDll>
|
||||
<UseExternalTool>0</UseExternalTool>
|
||||
<RunIndependent>0</RunIndependent>
|
||||
<UpdateFlashBeforeDebugging>1</UpdateFlashBeforeDebugging>
|
||||
<UpdateFlashBeforeDebugging>0</UpdateFlashBeforeDebugging>
|
||||
<Capability>1</Capability>
|
||||
<DriverSelection>4101</DriverSelection>
|
||||
</Flash1>
|
||||
|
Loading…
Reference in New Issue
Block a user