fix close

This commit is contained in:
pehladik 2020-03-30 17:10:56 +02:00
parent a87b0ffc69
commit 1c73c39715

View file

@ -131,7 +131,11 @@ int ComRobot::Open(string usart) {
* @return Success if above 0, failure if below 0
*/
int ComRobot::Close() {
#ifdef __SIMULATION__
return close(sock);
#elif
return close(fd);
#endif
}
/**