Showing the changes to interface/src/Application.cpp (1 of 5 files). Show all
Unified · Split
| @@ -56,6 +56,8 @@ · 55 unmodified lines | |||
| 56 | #include <PairingHandler.h> | 56 | #include <PairingHandler.h> |
| 57 | #include <PerfStat.h> | 57 | #include <PerfStat.h> |
| 58 | 58 | ||
| 59 | #include <VoxelSceneStats.h> | ||
| 60 | |||
| 59 | #include "Application.h" | 61 | #include "Application.h" |
| 60 | #include "InterfaceConfig.h" | 62 | #include "InterfaceConfig.h" |
| 61 | #include "LogDisplay.h" | 63 | #include "LogDisplay.h" |
| @@ -3337,6 +3339,12 @@ void* Application::networkReceive(void* args) { · 3275 unmodified lines | |||
| 3337 | if (packetVersionMatch(app->_incomingPacket)) { | 3339 | if (packetVersionMatch(app->_incomingPacket)) { |
| 3338 | // only process this packet if we have a match on the packet version | 3340 | // only process this packet if we have a match on the packet version |
| 3339 | switch (app->_incomingPacket[0]) { | 3341 | switch (app->_incomingPacket[0]) { |
| 3342 | case PACKET_TYPE_VOXEL_STATS:{ | ||
| 3343 | VoxelSceneStats stats; | ||
| 3344 | int statsMessageLength = stats.unpackFromMessage(app->_incomingPacket, bytesReceived); | ||
| 3345 | stats.printDebugDetails(); | ||
| 3346 | break; | ||
| 3347 | } | ||
| 3340 | case PACKET_TYPE_TRANSMITTER_DATA_V2: | 3348 | case PACKET_TYPE_TRANSMITTER_DATA_V2: |
| 3341 | // V2 = IOS transmitter app | 3349 | // V2 = IOS transmitter app |
| 3342 | app->_myTransmitter.processIncomingData(app->_incomingPacket, bytesReceived); | 3350 | app->_myTransmitter.processIncomingData(app->_incomingPacket, bytesReceived); |