Skip to content

Commit 246050d

Browse files
committed
[Satel Integra] Fix for common blind roller
1 parent 7ca548c commit 246050d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

hardware/SatelIntegra.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ void SatelIntegra::ReportOutputState(const int Idx, const bool state)
759759
{
760760
m_outputsLastState[Idx - 1] = state;
761761

762-
if (m_isOutputSwitch[Idx - 1])
762+
if ((Idx > 1024) || m_isOutputSwitch[Idx - 1])
763763
{
764764
SendGeneralSwitchSensor(Idx, 255, state ? gswitch_sOn : gswitch_sOff, NULL, 1);
765765
}
@@ -1027,6 +1027,12 @@ void SatelIntegra::UpdateOutputName(const int Idx, const unsigned char* name, co
10271027
sprintf(szTmp, "%08X", (int)Idx);
10281028

10291029
std::string shortName((char*)name, 16);
1030+
1031+
if (Idx > 1024)
1032+
{
1033+
shortName = "Common " + shortName; // for common roller blind
1034+
}
1035+
10301036
std::string::size_type pos = shortName.find_last_not_of(' ');
10311037
shortName.erase(pos + 1);
10321038
shortName = ISO2UTF8(shortName);

0 commit comments

Comments
 (0)