test CheckStartCondition
This commit is contained in:
@@ -48,6 +48,12 @@ void CalcTotals()
|
||||
Param::SetFixed(Param::udc, udcmax);
|
||||
}
|
||||
|
||||
bool CheckStartCondition()
|
||||
{
|
||||
return (IsEvseInput() && Param::GetBool(Param::proximity) && Param::Get(Param::cablelim) > FP_FROMFLT(1.4) && Param::GetBool(Param::enable)) ||
|
||||
(!IsEvseInput() && Param::GetBool(Param::enable));
|
||||
}
|
||||
|
||||
bool CheckTimeout()
|
||||
{
|
||||
uint32_t now = rtc_get_counter_val();
|
||||
|
||||
@@ -48,11 +48,6 @@ static Can* can;
|
||||
static PiController dcCurController;
|
||||
uint32_t startTime;
|
||||
|
||||
static bool CheckStartCondition()
|
||||
{
|
||||
return (IsEvseInput() && Param::GetBool(Param::proximity) && Param::Get(Param::cablelim) > FP_FROMFLT(1.4) && Param::GetBool(Param::enable)) ||
|
||||
(!IsEvseInput() && Param::GetBool(Param::enable));
|
||||
}
|
||||
|
||||
static bool CheckVoltage()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user