cwIo.cpp : Set p->sockN and p->serialN to 0 when socket or serial sub-systems are disabled.
This commit is contained in:
parent
6f2444b8d7
commit
9fd9043a2d
2
cwIo.cpp
2
cwIo.cpp
@ -526,6 +526,7 @@ namespace cw
|
||||
|
||||
if( enableFl==false || p->serialN == 0 )
|
||||
{
|
||||
p->serialN = 0;
|
||||
cwLogInfo("Serial port sub-system disabled.");
|
||||
goto errLabel;
|
||||
}
|
||||
@ -806,6 +807,7 @@ namespace cw
|
||||
|
||||
if( enableFl == false || p->sockN == 0 )
|
||||
{
|
||||
p->sockN = 0;
|
||||
cwLogInfo("Socket system disabled.");
|
||||
goto errLabel;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user