Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: src/command.cpp
- Revision:
- 43:291bbdba48f3
- Parent:
- 42:3ae73b61f657
--- a/src/command.cpp Sat Mar 09 21:01:45 2019 +0000 +++ b/src/command.cpp Sat Mar 09 21:16:38 2019 +0000 @@ -533,7 +533,7 @@ { if (readback) { - sprintf(strbuf, " %d", max_boards); + sprintf(strbuf, " %d", 3); sendSerial(strbuf); } else if (running == 1) @@ -543,7 +543,7 @@ } else { - max_boards = commandData; + //max_boards = commandData; } } else if (!strcmp(commandString, "BRDS")) @@ -566,7 +566,7 @@ { boardsActive = commandData; if(checkRange(boardsActive, 0, 8191) == 1){ - wr_out_code = setBoardEnables(boardsActive); + //wr_out_code = setBoardEnables(boardsActive); testing = TRUE; }else{ showRangeError(1, boardsActive, 0.0); @@ -593,7 +593,7 @@ { boardMults = commandData; if(checkRange(boardMults, 0, 63) == 1){ - en_out_code = setBoardWeights(boardMults); + //en_out_code = setBoardWeights(boardMults); testing = TRUE; }else{ showRangeError(1, boardMults, 0.0); @@ -621,14 +621,11 @@ my12 = 0; running = FALSE; testing = FALSE; - if(DEBUG){ - sprintf(strbuf, "wr_out_code=%d\r\n", wr_out_code); - sendSerial(strbuf); - } + } else if (!strcmp(commandString, "ALLON")) { - wr_out_code = setBoardEnables((unsigned int)ALLON); + //wr_out_code = setBoardEnables((unsigned int)ALLON); testing = TRUE; } else if (!strcmp(commandString, "RUN")) @@ -646,7 +643,7 @@ stopConverter(); testing = FALSE; } - else if ((rxbuf[bufloc] > '0') && (rxbuf[bufloc] < '0' + max_boards)) + else if ((rxbuf[bufloc] > '0') && (rxbuf[bufloc] < '0' + 3)) { ival = atoi(&rxbuf[bufloc]); //ival--;