File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -218,10 +218,6 @@ void csp_service_handler(csp_packet_t * packet) {
218
218
}
219
219
break ;
220
220
221
- case CSP_PING :
222
- /* A ping means, just echo the packet, so no changes */
223
- break ;
224
-
225
221
case CSP_PS : {
226
222
packet -> length = csp_ps_hook (packet );
227
223
if (packet -> length == 0 ) {
@@ -275,12 +271,14 @@ void csp_service_handler(csp_packet_t * packet) {
275
271
break ;
276
272
}
277
273
274
+ case CSP_PING :
275
+ /* A ping means, just echo the packet, so no changes */
278
276
default :
277
+ if (packet != NULL )
278
+ {
279
+ csp_sendto_reply (packet , packet , CSP_O_SAME );
280
+ }
279
281
csp_buffer_free (packet );
280
282
return ;
281
283
}
282
-
283
- if (packet != NULL ) {
284
- csp_sendto_reply (packet , packet , CSP_O_SAME );
285
- }
286
284
}
You can’t perform that action at this time.
0 commit comments