Skip to content

Commit

Permalink
#57
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Sep 18, 2020
1 parent b4d444d commit ffec23a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/eez/modules/psu/scpi/syst.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1973,11 +1973,16 @@ scpi_result_t scpi_cmd_systemMeasureScalarVoltageDcQ(scpi_t *context) {
}

scpi_result_t scpi_cmd_systemDelay(scpi_t *context) {
int32_t delayMs;
if (!SCPI_ParamInt32(context, &delayMs, false)) {
uint32_t delayMs;
if (!SCPI_ParamUInt32(context, &delayMs, false)) {
return SCPI_RES_ERR;
}


if (delayMs > 10000) {
SCPI_ErrorPush(context, SCPI_ERROR_DATA_OUT_OF_RANGE);
return SCPI_RES_ERR;
}

osDelay(delayMs);

return SCPI_RES_OK;
Expand Down

0 comments on commit ffec23a

Please sign in to comment.