Skip to content

Commit 33a966d

Browse files
committed
Switch from RFXtrx.h constants to hardwaretypes.h
1 parent f4c44e5 commit 33a966d

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

hardware/Kodi.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include "../main/WebServer.h"
88
#include "../main/mainworker.h"
99
#include "../main/EventSystem.h"
10-
10+
#include "../hardware/hardwaretypes.h"
1111
#include <boost/algorithm/string.hpp>
1212

1313
#include <iostream>
@@ -824,10 +824,10 @@ bool CKodi::WriteToHardware(const char *pdata, const unsigned char length)
824824
case light2_sOff:
825825
case light2_sGroupOff:
826826
return (*itt)->SendShutdown();
827-
case light2_sStop:
827+
case gswitch_sStop:
828828
(*itt)->SendCommand("stop");
829829
return true;
830-
case light2_sPause:
830+
case gswitch_sPause:
831831
(*itt)->SendCommand("playpause");
832832
return true;
833833
default:

hardware/hardwaretypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
#define gswitch_sSound8 0x10
135135
#define gswitch_sStop 0x11
136136
#define gswitch_sProgram 0x12
137-
137+
#define gswitch_sPause 0x13
138138
//--------------
139139

140140
#define pTypeLux 0xF6

main/RFXNames.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1991,12 +1991,12 @@ bool GetLightCommand(
19911991
}
19921992
else if (switchcmd == "Stop")
19931993
{
1994-
cmd = light2_sStop;
1994+
cmd = gswitch_sStop;
19951995
return true;
19961996
}
19971997
else if (switchcmd == "Paused")
19981998
{
1999-
cmd = light2_sPause;
1999+
cmd = gswitch_sPause;
20002000
return true;
20012001
}
20022002
else

main/RFXtrx.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,8 +417,6 @@ SDK version 4.9
417417
#define light2_sGroupOff 0x3
418418
#define light2_sGroupOn 0x4
419419
#define light2_sSetGroupLevel 0x5
420-
#define light2_sStop 0x6
421-
#define light2_sPause 0x7
422420

423421
#define pTypeLighting3 0x12
424422
#define sTypeKoppla 0x0

0 commit comments

Comments
 (0)