Skip to content

Commit b47bbde

Browse files
committed
FIX: missing path value in serial port's specification
1 parent 4d93180 commit b47bbde

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/boot/sysobj.reb

+1
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ standard: object [
332332
]
333333

334334
port-spec-serial: make port-spec-head [
335+
path: none
335336
speed: 115200
336337
data-size: 8
337338
parity: none

src/core/p-serial.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
switch (action) {
7272

7373
case A_OPEN:
74-
arg = Obj_Value(spec, STD_PORT_SPEC_SERIAL_REF); //Should Obj_Value really return a char* ?
74+
arg = Obj_Value(spec, STD_PORT_SPEC_SERIAL_PATH); //Should Obj_Value really return a char* ?
7575
if (! (IS_FILE(arg) || IS_STRING(arg) || IS_BINARY(arg))) {
7676
Trap1(RE_INVALID_PORT_ARG, arg);
7777
}

0 commit comments

Comments
 (0)