|
|
@ -158,14 +158,18 @@ static void builtin_SYST_ERR_ALLq(const SCPI_argval_t *args) |
|
|
|
{ |
|
|
|
{ |
|
|
|
(void)args; |
|
|
|
(void)args; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (scpi_error_count()) { |
|
|
|
int cnt = 0; |
|
|
|
int cnt = 0; |
|
|
|
while (scpi_error_count()) { |
|
|
|
while (scpi_error_count()) { |
|
|
|
scpi_read_error(sbuf); |
|
|
|
scpi_read_error(sbuf); |
|
|
|
if (cnt++ > 0) scpi_send_string_raw(","); |
|
|
|
if (cnt++ > 0) scpi_send_string_raw(","); |
|
|
|
scpi_send_string_raw(sbuf); |
|
|
|
scpi_send_string_raw(sbuf); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
scpi_send_string_raw(scpi_eol); |
|
|
|
scpi_send_string_raw(scpi_eol); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
scpi_read_error(sbuf); // O,"No error"
|
|
|
|
|
|
|
|
scpi_send_string(sbuf); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|