adding repetitive DigIo mock test
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
#include "../libopeninv/include/params.h"
|
||||
#ifdef TEST_COMMON_H
|
||||
#include "../test/digio_mock.h"
|
||||
#endif
|
||||
|
||||
static bool IsEvseInput();
|
||||
static void DisableAll();
|
||||
@@ -13,3 +16,16 @@ static bool CheckUnplugged()
|
||||
{
|
||||
return IsEvseInput() && !Param::GetBool(Param::proximity);
|
||||
}
|
||||
|
||||
static void DisableAll()
|
||||
{
|
||||
DigIo::hvena_out.Clear();
|
||||
DigIo::acpres_out.Clear();
|
||||
DigIo::evseact_out.Clear();
|
||||
DigIo::ch1act_out.Clear();
|
||||
DigIo::ch2act_out.Clear();
|
||||
DigIo::ch2act_out.Clear();
|
||||
DigIo::ch1ena_out.Clear();
|
||||
DigIo::ch2ena_out.Clear();
|
||||
DigIo::ch3ena_out.Clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user