Made pulse length detection modular throughout pilight-debug