/* Process function helper. Displays low data rate warning if the ADC output data rate is smaller than 80 times the register update rate. If this is the case the application may stop the CLI capability and freeze. */
static int32_t cn0414_process_low_odr_warning(struct cn0414_dev *dev)
/* Process function helper. Displays low data rate warning if the ADC output data rate is smaller than 80 times the register update rate. If this is the case the application may stop the CLI capability and freeze. */
static int32_t cn0414_process_low_odr_warning(struct cn0414_dev *dev)
{
	int32_t ret;
	ret = usr_uart_write_string(dev->uart_descriptor,
				    (uint8_t*)"\nCARE! SAMPLE RATE CRITICALLY LOW!\n");
	if(ret != CN0414_SUCCESS)
		goto finish;
	ret = usr_uart_write_string(dev->uart_descriptor, (uint8_t*)">");
	if(ret != CN0414_SUCCESS)
		goto finish;
finish:
	low_sample_rate_flag = 2;
	return ret;
}