mirror of
https://github.com/EyeTrackVR/OpenIris.git
synced 2025-11-04 15:39:42 +08:00
update
- remove uneeded enum in serial manager class
This commit is contained in:
parent
a414581113
commit
ada9dfd9cf
@ -107,7 +107,7 @@ void SerialManager::parseData()
|
|||||||
|
|
||||||
void SerialManager::handleSerial()
|
void SerialManager::handleSerial()
|
||||||
{
|
{
|
||||||
listenToSerial(30000L); // test for serial input for 30 seconds
|
listenToSerial(30000L); // test for serial input every 30 seconds
|
||||||
if (newData) // input received
|
if (newData) // input received
|
||||||
{
|
{
|
||||||
strcpy(tempBuffer, serialBuffer); // this temporary copy is necessary to protect the original data because strtok() used in parseData() replaces the commas with \0
|
strcpy(tempBuffer, serialBuffer); // this temporary copy is necessary to protect the original data because strtok() used in parseData() replaces the commas with \0
|
||||||
|
|||||||
@ -33,15 +33,6 @@ private:
|
|||||||
|
|
||||||
void listenToSerial(unsigned long timeout);
|
void listenToSerial(unsigned long timeout);
|
||||||
void parseData();
|
void parseData();
|
||||||
enum DataTypes_e
|
|
||||||
{
|
|
||||||
DataType_Unknown,
|
|
||||||
DataType_Device,
|
|
||||||
DataType_Camera,
|
|
||||||
DataType_Wifi,
|
|
||||||
DataType_Error,
|
|
||||||
DataType_Debug
|
|
||||||
};
|
|
||||||
|
|
||||||
char serialBuffer[100000]; //! Need to find the appropriate size for this - count the maximum possible size of a message
|
char serialBuffer[100000]; //! Need to find the appropriate size for this - count the maximum possible size of a message
|
||||||
char tempBuffer[sizeof(serialBuffer) / sizeof(serialBuffer[0])];
|
char tempBuffer[sizeof(serialBuffer) / sizeof(serialBuffer[0])];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user