Browse Source

fix close

pehladik 4 years ago
parent
commit
1c73c39715
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      software/raspberry/superviseur-robot/lib/comrobot.cpp

+ 4
- 0
software/raspberry/superviseur-robot/lib/comrobot.cpp View File

@@ -131,7 +131,11 @@ int ComRobot::Open(string usart) {
131 131
  * @return Success if above 0, failure if below 0
132 132
  */
133 133
 int ComRobot::Close() {
134
+#ifdef __SIMULATION__
135
+    return close(sock);
136
+#elif
134 137
     return close(fd);
138
+#endif
135 139
 }
136 140
 
137 141
 /**

Loading…
Cancel
Save