mirror of
https://github.com/anklimov/lighthub
synced 2025-12-07 20:29:50 +03:00
I2C autoreset, driver status refactor, VC_TEMP fix
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
#include "item.h"
|
||||
#include "main.h"
|
||||
|
||||
static int driverStatus = CST_UNKNOWN;
|
||||
|
||||
void out_Multivent::getConfig()
|
||||
{
|
||||
@@ -46,7 +45,7 @@ if (gatesObj /*&& aJson.getArraySize(item->itemArg)>=2*/)
|
||||
i=i->next;
|
||||
}
|
||||
debugSerial << F ("MultiVent init")<< endl;
|
||||
driverStatus = CST_INITIALIZED;
|
||||
setStatus(CST_INITIALIZED);
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -58,30 +57,10 @@ return 0;
|
||||
int out_Multivent::Stop()
|
||||
{
|
||||
debugSerial << F ("Multivent De-Init") << endl;
|
||||
driverStatus = CST_UNKNOWN;
|
||||
setStatus(CST_UNKNOWN);
|
||||
return 1;
|
||||
}
|
||||
|
||||
int out_Multivent::Status()
|
||||
{
|
||||
return driverStatus;
|
||||
}
|
||||
/*
|
||||
int out_Multivent::isActive()
|
||||
{
|
||||
itemCmd st;
|
||||
switch (item->getCmd())
|
||||
{
|
||||
case CMD_OFF:
|
||||
case CMD_HALT:
|
||||
return 0;
|
||||
break;
|
||||
default:
|
||||
st.loadItem(item);
|
||||
return st.getPercents255();
|
||||
}
|
||||
}
|
||||
*/
|
||||
int out_Multivent::Poll(short cause)
|
||||
{
|
||||
return 0;
|
||||
@@ -93,7 +72,6 @@ int out_Multivent::getChanType()
|
||||
}
|
||||
|
||||
|
||||
|
||||
int out_Multivent::Ctrl(itemCmd cmd, char* subItem , bool toExecute, bool authorized)
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user