I2C autoreset, driver status refactor, VC_TEMP fix

This commit is contained in:
2023-11-12 01:04:53 +03:00
parent fe054c3c4e
commit 2e21362fd8
32 changed files with 102 additions and 187 deletions

View File

@@ -8,25 +8,20 @@
#include "main.h"
static int driverStatus = CST_UNKNOWN;
int out_counter::Setup()
{
abstractOut::Setup();
driverStatus = CST_INITIALIZED;
setStatus(CST_INITIALIZED);
return 1;
}
int out_counter::Stop()
{
driverStatus = CST_UNKNOWN;
setStatus(CST_UNKNOWN);
return 1;
}
int out_counter::Status()
{
return driverStatus;
}
int out_counter::Poll(short cause)