Skip to content

Commit 39c9f12

Browse files
committed
Additional depreciation fixes on 1.0
1 parent b160f8c commit 39c9f12

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/SerialPorts.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ system.
123123
function check_serial_access()
124124
@static if Sys.isunix()
125125
current_user = ENV["USER"]
126-
in_dialout() || warn("""User $current_user is not in the 'dialout' group.
127-
They can be added with:
128-
'usermod -a -G dialout $current_user'""")
126+
in_dialout() || @warn """User $current_user is not in the 'dialout' group.
127+
They can be added with:
128+
'usermod -a -G dialout $current_user'"""
129129
end
130130
end
131131

@@ -134,7 +134,7 @@ On Unix, test if the current user is in the 'dialout' group.
134134
"""
135135
function in_dialout()
136136
@static if Sys.isunix()
137-
"dialout" in split(readstring(`groups`))
137+
"dialout" in split(read(`groups`, String))
138138
end
139139
end
140140

0 commit comments

Comments
 (0)