即使丢失或覆盖也会关闭串行端口
假设你在此示例中创建了串行端口对象 s
,然后将其关闭
fclose(s)
但是,有时你可能会意外丢失端口(例如清除,覆盖,更改范围等),并且 fclose(s)
将不再起作用。解决方案很简单
fclose(instrfindall)
更多信息在 instrfindall()
。
假设你在此示例中创建了串行端口对象 s
,然后将其关闭
fclose(s)
但是,有时你可能会意外丢失端口(例如清除,覆盖,更改范围等),并且 fclose(s)
将不再起作用。解决方案很简单
fclose(instrfindall)
更多信息在 instrfindall()
。