mirror of
https://github.com/anklimov/lighthub
synced 2025-12-08 12:49:50 +03:00
MASSIVE refactoring. /set scale changed 100 -> 255
This commit is contained in:
23
lighthub/abstractout.cpp
Normal file
23
lighthub/abstractout.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user