Fix filesystem errors in SerialPort
Atempt to fix the errors in porting of a function that happened in !2923 (merged)
Please double-check Linux and MacOS pipelines before merging this one
Edited by Dmitry K
Atempt to fix the errors in porting of a function that happened in !2923 (merged)
Please double-check Linux and MacOS pipelines before merging this one