Showing the changes to interface/src/main.cpp (1 of 3 files). Show all
Unified · Split
| @@ -344,7 +344,9 @@ void init(void) · 343 unmodified lines | |||
| 344 | 344 | ||
| 345 | void terminate () { | 345 | void terminate () { |
| 346 | // Close serial port | 346 | // Close serial port |
| 347 | //close(serial_fd); | 347 | // close(serial_fd); |
| 348 | |||
| 349 | myAvatar.writeAvatarDataToFile(); | ||
| 348 | 350 | ||
| 349 | #ifndef _WIN32 | 351 | #ifndef _WIN32 |
| 350 | audio.terminate(); | 352 | audio.terminate(); |
| @@ -1944,6 +1946,8 @@ int main(int argc, const char * argv[]) · 1593 unmodified lines | |||
| 1944 | printLog("Network receive thread created.\n"); | 1946 | printLog("Network receive thread created.\n"); |
| 1945 | } | 1947 | } |
| 1946 | 1948 | ||
| 1949 | myAvatar.readAvatarDataFromFile(); | ||
| 1950 | |||
| 1947 | glutTimerFunc(1000, Timer, 0); | 1951 | glutTimerFunc(1000, Timer, 0); |
| 1948 | glutMainLoop(); | 1952 | glutMainLoop(); |
| 1949 | 1953 | ||