- remove uneeded enum in serial manager class
This commit is contained in:
ZanzyTHEbar 2022-07-31 13:51:33 +01:00
parent a414581113
commit ada9dfd9cf
2 changed files with 1 additions and 10 deletions

View File

@ -107,7 +107,7 @@ void SerialManager::parseData()
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
{
strcpy(tempBuffer, serialBuffer); // this temporary copy is necessary to protect the original data because strtok() used in parseData() replaces the commas with \0

View File

@ -33,15 +33,6 @@ private:
void listenToSerial(unsigned long timeout);
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 tempBuffer[sizeof(serialBuffer) / sizeof(serialBuffer[0])];