@@ -160,7 +160,7 @@ void flashLed() {
160160 digitalWrite (LED_PIN, LOW);
161161}
162162
163- int8_t processFlash (Protocol *protocol) {
163+ int8_t executeFlash (Protocol *protocol) {
164164 if (lastSwitchState != SWITCH_STATE_YELLOW)
165165 return -1 ;
166166
@@ -180,23 +180,23 @@ int8_t processFlash(Protocol *protocol) {
180180 return 0 ;
181181}
182182
183- int8_t processTurnOn (Protocol *protocol) {
183+ int8_t executeTurnOn (Protocol *protocol) {
184184 if (lastSwitchState != SWITCH_STATE_YELLOW)
185185 return -1 ;
186186
187187 turnLedOn ();
188188 return 0 ;
189189}
190190
191- int8_t processTurnOff (Protocol *protocol) {
191+ int8_t executeTurnOff (Protocol *protocol) {
192192 if (lastSwitchState != SWITCH_STATE_YELLOW)
193193 return -1 ;
194194
195195 turnLedOff ();
196196 return 0 ;
197197}
198198
199- int8_t processResetThing (Protocol *protocol) {
199+ int8_t executeResetThing (Protocol *protocol) {
200200 resetThing ();
201201
202202#ifdef ENABLE_DEBUG
@@ -208,16 +208,16 @@ int8_t processResetThing(Protocol *protocol) {
208208
209209void configureThingProtocolsImpl () {
210210 ProtocolName pnResetThing = {0xf8 , 0x02 , 0x09 };
211- registerActionProtocol (pnResetThing, processResetThing , false );
211+ registerExecutionProtocol (pnResetThing, executeResetThing , false );
212212
213213 ProtocolName pnFlash = {0xf7 , 0x01 , 0x00 };
214- registerActionProtocol (pnFlash, processFlash , false );
214+ registerExecutionProtocol (pnFlash, executeFlash , false );
215215
216216 ProtocolName pnTurnOn = {0xf7 , 0x01 , 0x02 };
217- registerActionProtocol (pnTurnOn, processTurnOn , false );
217+ registerExecutionProtocol (pnTurnOn, executeTurnOn , false );
218218
219219 ProtocolName pnTurnOff = {0xf7 , 0x01 , 0x03 };
220- registerActionProtocol (pnTurnOff, processTurnOff , false );
220+ registerExecutionProtocol (pnTurnOff, executeTurnOff , false );
221221}
222222
223223void controlLedByLastSwitchState () {
0 commit comments