Skip to content

Commit

Permalink
ethernet scpi init
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Nov 4, 2020
1 parent e2c7258 commit 5fac51c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/eez/modules/psu/ethernet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,6 @@ scpi_t g_scpiContext;

////////////////////////////////////////////////////////////////////////////////

void initScpi() {
scpi::init(g_scpiContext, g_scpiPsuContext, &g_scpiInterface, g_scpiInputBuffer, SCPI_PARSER_INPUT_BUFFER_LENGTH, g_errorQueueData, SCPI_PARSER_ERROR_QUEUE_SIZE + 1);
}

void init() {
initScpi();

Expand All @@ -127,6 +123,10 @@ void init() {
g_testResult = TEST_CONNECTING;
}

void initScpi() {
scpi::init(g_scpiContext, g_scpiPsuContext, &g_scpiInterface, g_scpiInputBuffer, SCPI_PARSER_INPUT_BUFFER_LENGTH, g_errorQueueData, SCPI_PARSER_ERROR_QUEUE_SIZE + 1);
}

bool test() {
if (g_testResult == TEST_FAILED) {
generateError(SCPI_ERROR_ETHERNET_TEST_FAILED);
Expand Down
2 changes: 2 additions & 0 deletions src/eez/modules/psu/ethernet.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ extern TestResult g_testResult;
extern scpi_t g_scpiContext;

void init();
void initScpi();

bool test();

void onQueueMessage(uint32_t type, uint32_t param);
Expand Down

0 comments on commit 5fac51c

Please sign in to comment.