Skip to content

Commit ae32907

Browse files
committed
RFLink: added support for additional protocols
1 parent c14fc86 commit ae32907

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

hardware/RFLink.cpp

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ const _tRFLinkStringIntHelper rfswitches[] =
7474
{ "EV1527", sSwitchTypeEV1527 }, // p61
7575
{ "Elmes", sSwitchTypeElmes }, // p65
7676
{ "Aster", sSwitchTypeAster }, // p17
77-
{ "Sartano", sSwitchTypeSartano }, // p17
77+
{ "Sartano", sSwitchTypeSartano }, // p3
78+
{ "Europe", sSwitchTypeEurope }, // p18
7879
{ "", -1 }
7980
};
8081

@@ -89,6 +90,17 @@ const _tRFLinkStringIntHelper rfswitchcommands[] =
8990
{ "", -1 }
9091
};
9192

93+
const _tRFLinkStringIntHelper rfblindcommands[] =
94+
{
95+
{ "UP", blinds_sOpen },
96+
{ "DOWN", blinds_sClose },
97+
{ "STOP", blinds_sStop },
98+
{ "CONFIRM", blinds_sConfirm },
99+
{ "LIMIT", blinds_sLimit },
100+
{ "", -1 }
101+
};
102+
103+
92104
int GetGeneralRFLinkFromString(const _tRFLinkStringIntHelper *pTable, const std::string &szType)
93105
{
94106
int ii = 0;

hardware/hardwaretypes.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
#define sSwitchTypeElmes 0x33
113113
#define sSwitchTypeAster 0x34
114114
#define sSwitchTypeSartano 0x35
115+
#define sSwitchTypeEurope 0x36
115116

116117
//Switch commands
117118
#define gswitch_sOff 0x00

main/RFXNames.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,7 @@ const char *RFX_Type_SubType_Desc(const unsigned char dType, const unsigned char
715715
{ pTypeGeneralSwitch, sSwitchTypeElmes, "Elmes" },
716716
{ pTypeGeneralSwitch, sSwitchTypeAster, "Aster" },
717717
{ pTypeGeneralSwitch, sSwitchTypeSartano, "Sartano" },
718+
{ pTypeGeneralSwitch, sSwitchTypeEurope, "Europe" },
718719
{ 0,0,NULL }
719720
};
720721
return findTableID1ID2(Table, dType, sType);

0 commit comments

Comments
 (0)