mirror of
https://github.com/anklimov/lighthub
synced 2025-12-06 03:39:49 +03:00
23 lines
441 B
C++
23 lines
441 B
C++
|
|
#include "item.h"
|
|
#include "abstractout.h"
|
|
#include "itemCmd.h"
|
|
int abstractOut::isActive()
|
|
|
|
{itemCmd st;
|
|
switch (item->getCmd())
|
|
{
|
|
case CMD_OFF:
|
|
case CMD_HALT:
|
|
return 0;
|
|
break;
|
|
default:
|
|
st.loadItem(item);
|
|
return st.getPercents255();
|
|
}
|
|
};
|
|
|
|
int abstractOut::Setup()
|
|
{
|
|
if (item) item->setCmd(CMD_OFF);
|
|
}
|