/* Display the baseline value used in calculating relative ratio.  */
int32_t cn0503_baseline_get(struct cn0503_dev *dev, uint8_t *arg)
/* Display the baseline value used in calculating relative ratio.  */
int32_t cn0503_baseline_get(struct cn0503_dev *dev, uint8_t *arg)
{
	extern uint8_t uart_current_line[100];
	int8_t i;
	uint8_t buff[20];
	if (uart_current_line[3] != '?' || uart_current_line[4] != 0)
		return SUCCESS;
	i = uart_current_line[2] - 0x30;
	if ((i < 0) || (i >= 8))
		return SUCCESS;
	sprintf((char *)buff, "%.5f", dev->ratb[i]);
	cli_write_string(dev->cli_handler,
			 (uint8_t *)"RESP: RZ");
	uart_write(dev->cli_handler->uart_device, &uart_current_line[2], 1);
	cli_write_string(dev->cli_handler, (uint8_t *)"?=");
	cli_write_string(dev->cli_handler, buff);
	cli_write_string(dev->cli_handler, (uint8_t *)"\n");
	return SUCCESS;
}