+ g_strfreev(tokens);
+
+ /* Get max. voltage and current. */
+ if ((hcs_send_cmd(serial, "GMAX\r") < 0) ||
+ (hcs_read_reply(serial, 2, reply, sizeof(reply)) < 0))
+ goto exit_err;
+ tokens = g_strsplit((const gchar *)&reply, "\r", 2);
+ devc->current_max_device = g_strtod(&tokens[0][3], &dummy) * devc->model->current[2];
+ tokens[0][3] = '\0';
+ devc->voltage_max_device = g_strtod(tokens[0], &dummy) * devc->model->voltage[2];
+ g_strfreev(tokens);