Skip to content

Commit 018e127

Browse files
committed
fix state
1 parent 3595b58 commit 018e127

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

library.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "EnOcean",
3-
"version": "1.1.2",
3+
"version": "1.1.3",
44
"keywords": "EnOcean",
55
"description": "A library to communicate with EnOcean gateways via serial",
66
"repository":

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=EnOcean
2-
version=1.1.2
2+
version=1.1.3
33
author=Marius Bäsler
44
maintainer=Marius Bäsler<[email protected]>
55
sentence=Communicate with EnOcean gateways via serial

src/enocean.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -107,31 +107,31 @@ void Packet::handleRPSTelegram()
107107
case 0xE0: // Windows handles
108108
case 0xC0:
109109
type = "window_handle";
110-
state = "on";
110+
state = 1;
111111
break;
112112
case 0x70: // 4-button remote
113113
type = "four_button_remote_button4";
114-
state = "on";
114+
state = 1;
115115
break;
116116
case 0x50:
117117
type = "four_button_remote_button3";
118-
state = "on";
118+
state = 1;
119119
break;
120120
case 0x30:
121121
type = "four_button_remote_button2";
122-
state = "on";
122+
state = 1;
123123
break;
124124
case 0x10:
125125
type = "four_button_remote_button1";
126-
state = "on";
126+
state = 1;
127127
break;
128128
case 0xF0:
129129
type = "window_handle";
130-
state = "off";
130+
state = 0;
131131
break;
132132
case 0x00:
133133
type = "four_button_remote_off";
134-
state = "off";
134+
state = 0;
135135
break;
136136
case 0xD0:
137137
state = "unknown";

0 commit comments

Comments
 (0)