We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 486207c commit 7898384Copy full SHA for 7898384
MIDAS/src/hilsim/stream/main.cpp
@@ -163,13 +163,16 @@ int main(int argc, char** argv) {
163
case 'S':
164
// (S)erial <COM>: Set serial port
165
{
166
- char sbuf[128];
167
- sscanf(_inbuf + 1, " %s", &sbuf);
168
-
169
- char serial_open_err = Serial.openDevice(sbuf, 115200);
170
- if (serial_open_err != 1) return wrap_err(serial_open_err);
171
- printf("SERIAL OK\n", sbuf);
172
- fflush(stdout);
+ char sbuf[128];
+ sscanf(_inbuf + 1, " %s", &sbuf);
+
+ char serial_open_err = Serial.openDevice(sbuf, 115200);
+ if (serial_open_err != 1) {
+ printf(".SERIAL_BAD\n");
+ } else {
173
+ printf(".SERIAL_OK\n");
174
+ }
175
+ fflush(stdout);
176
}
177
break;
178
case 'o':
0 commit comments