Showing the changes to interface/src/SerialInterface.cpp (1 of 22 files). Show all
Unified · Split
| @@ -100,7 +100,7 @@ void SerialInterface::initializePort(char* portname) { · 99 unmodified lines | ||
| 100 | 100 | qDebug("Opening SerialUSB %s: ", portname); |
| 101 | 101 | |
| 102 | 102 | if (_serialDescriptor == -1) { |
| 103 | − qDebug("Failed.\n"); | |
| 103 | + qDebug("Failed."); | |
| 104 | 104 | return; |
| 105 | 105 | } |
| 106 | 106 | |
| @@ -134,7 +134,7 @@ void SerialInterface::initializePort(char* portname) { · 27 unmodified lines | ||
| 134 | 134 | mpu_set_sensors(INV_XYZ_GYRO | INV_XYZ_ACCEL | INV_XYZ_COMPASS); |
| 135 | 135 | } |
| 136 | 136 | |
| 137 | − qDebug("Connected.\n"); | |
| 137 | + qDebug("Connected."); | |
| 138 | 138 | resetSerial(); |
| 139 | 139 | |
| 140 | 140 | _active = true; |
| @@ -373,7 +373,7 @@ void SerialInterface::readData(float deltaTime) { · 232 unmodified lines | ||
| 373 | 373 | gettimeofday(&now, NULL); |
| 374 | 374 | |
| 375 | 375 | if (diffclock(&lastGoodRead, &now) > NO_READ_MAXIMUM_MSECS) { |
| 376 | − qDebug("No data - Shutting down SerialInterface.\n"); | |
| 376 | + qDebug("No data - Shutting down SerialInterface."); | |
| 377 | 377 | resetSerial(); |
| 378 | 378 | } |
| 379 | 379 | } else { |