/* Set pulse period for when the solenoid needs to pulse before reaching hold value. */
int32_t cn0415_pulse_set_period(struct cn0415_dev *dev, uint8_t *args)
/* Set pulse period for when the solenoid needs to pulse before reaching hold value. */
int32_t cn0415_pulse_set_period(struct cn0415_dev *dev, uint8_t *args)
{
	dev->pulse_t = atoi((char *)args);
	dev->param_array[T_PULSE] = dev->pulse_t;
	return flash_write(dev->param_array, FLASH_PARAM_SIZE);
}