/* Set pulse value for when the solenoid needs to pulse before reaching hold value. */
int32_t cn0415_pulse_set_val(struct cn0415_dev *dev, uint8_t *args)
/* Set pulse value for when the solenoid needs to pulse before reaching hold value. */
int32_t cn0415_pulse_set_val(struct cn0415_dev *dev, uint8_t *args)
{
	dev->pulse_val = atof((char *)args);
	dev->param_array[PULSE_VAL_INT] = dev->pulse_val;
	dev->param_array[PULSE_VAL_DEC] =
		(uint32_t)(dev->pulse_val * 10000) % 10000;
	return flash_write(dev->param_array, FLASH_PARAM_SIZE);
}