is_auto = g_ascii_strcasecmp(range, "auto") == 0;
scpi_dmm_cmd_delay(sdi->conn);
- ret = sr_scpi_cmd(sdi, devc->cmdset, 0, NULL,
- is_auto ? DMM_CMD_SETUP_RANGE_AUTO : DMM_CMD_SETUP_RANGE,
- item->scpi_func_setup, is_auto ? "" : range);
+ ret = sr_scpi_cmd(sdi, devc->cmdset, 0, NULL, DMM_CMD_SETUP_RANGE,
+ item->scpi_func_setup, is_auto ? "AUTO" : range);
if (ret != SR_OK)
return ret;