test reset values

This commit is contained in:
Janosch
2022-10-11 13:38:50 +01:00
parent 8e61ddd188
commit b45c29f89e
7 changed files with 26 additions and 11 deletions
+11
View File
@@ -166,3 +166,14 @@ void EvseRead()
}
}
void ResetValuesInOffMode()
{
if (Param::GetInt(Param::state) == OFF)
{
for (int i = Param::c1stt; i <= Param::c3idc; i++)
{
Param::SetInt((Param::PARAM_NUM)i, 0);
}
}
}