@@ -160,7 +160,7 @@ void flashLed() {
160
160
digitalWrite (LED_PIN, LOW);
161
161
}
162
162
163
- int8_t processFlash (Protocol *protocol) {
163
+ int8_t executeFlash (Protocol *protocol) {
164
164
if (lastSwitchState != SWITCH_STATE_YELLOW)
165
165
return -1 ;
166
166
@@ -180,23 +180,23 @@ int8_t processFlash(Protocol *protocol) {
180
180
return 0 ;
181
181
}
182
182
183
- int8_t processTurnOn (Protocol *protocol) {
183
+ int8_t executeTurnOn (Protocol *protocol) {
184
184
if (lastSwitchState != SWITCH_STATE_YELLOW)
185
185
return -1 ;
186
186
187
187
turnLedOn ();
188
188
return 0 ;
189
189
}
190
190
191
- int8_t processTurnOff (Protocol *protocol) {
191
+ int8_t executeTurnOff (Protocol *protocol) {
192
192
if (lastSwitchState != SWITCH_STATE_YELLOW)
193
193
return -1 ;
194
194
195
195
turnLedOff ();
196
196
return 0 ;
197
197
}
198
198
199
- int8_t processResetThing (Protocol *protocol) {
199
+ int8_t executeResetThing (Protocol *protocol) {
200
200
resetThing ();
201
201
202
202
#ifdef ENABLE_DEBUG
@@ -208,16 +208,16 @@ int8_t processResetThing(Protocol *protocol) {
208
208
209
209
void configureThingProtocolsImpl () {
210
210
ProtocolName pnResetThing = {0xf8 , 0x02 , 0x09 };
211
- registerActionProtocol (pnResetThing, processResetThing , false );
211
+ registerExecutionProtocol (pnResetThing, executeResetThing , false );
212
212
213
213
ProtocolName pnFlash = {0xf7 , 0x01 , 0x00 };
214
- registerActionProtocol (pnFlash, processFlash , false );
214
+ registerExecutionProtocol (pnFlash, executeFlash , false );
215
215
216
216
ProtocolName pnTurnOn = {0xf7 , 0x01 , 0x02 };
217
- registerActionProtocol (pnTurnOn, processTurnOn , false );
217
+ registerExecutionProtocol (pnTurnOn, executeTurnOn , false );
218
218
219
219
ProtocolName pnTurnOff = {0xf7 , 0x01 , 0x03 };
220
- registerActionProtocol (pnTurnOff, processTurnOff , false );
220
+ registerExecutionProtocol (pnTurnOff, executeTurnOff , false );
221
221
}
222
222
223
223
void controlLedByLastSwitchState () {
0 commit comments