fix close
This commit is contained in:
parent
a87b0ffc69
commit
1c73c39715
1 changed files with 4 additions and 0 deletions
|
@ -131,7 +131,11 @@ int ComRobot::Open(string usart) {
|
||||||
* @return Success if above 0, failure if below 0
|
* @return Success if above 0, failure if below 0
|
||||||
*/
|
*/
|
||||||
int ComRobot::Close() {
|
int ComRobot::Close() {
|
||||||
|
#ifdef __SIMULATION__
|
||||||
|
return close(sock);
|
||||||
|
#elif
|
||||||
return close(fd);
|
return close(fd);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue