+ /* Get current device status. */
+ if ((hcs_send_cmd(serial, "GETD\r") < 0) ||
+ (hcs_read_reply(serial, 2, reply, sizeof(reply)) < 0))
+ return NULL;
+ tokens = g_strsplit((const gchar *)&reply, "\r", 2);
+ if (hcs_parse_volt_curr_mode(sdi, tokens) < 0)
+ goto exit_err;
+