Commit
5dfa77b5 introduced a regression in korad_kaxxxxp_get_value().
Positive non-zero return values from command transmission made the
routine fail for every invocation. Fixup the error check and advance
to response reception, do provide the values retrieved from the PSU.
[ gsi: rephrase check, reword commit message ]
sr_err("Don't know how to query %d.", target);
ret = SR_ERR;
}
- if (ret != SR_OK) {
+ if (ret < 0) {
g_mutex_unlock(&devc->rw_mutex);
return ret;
}