Some fixes in the clarus and pilight_firmware protocols