Open azzamsaziz opened 10 years ago
Do you know only Arduino MEGA has
Serial2 and Serial3?
On 11/07/2014 9:43 AM, Azzam Aziz wrote:
In this line SerialBLE.begin(STREAM_BAUDRATE);
In file included from megalogger.ino:25:
/datalogger.h: In member function 'void
CDataLogger::initSender()':
datalogger.h:68: error: 'Serial3' was not declared in this scope
/datalogger.h: In member function 'void
CDataLogger::logData(char)':
datalogger.h:87: error: 'Serial3' was not declared in this scope
/datalogger.h: In member function 'void
CDataLogger::logData(uint16_t, int)':
datalogger.h:106: error: 'Serial3' was not declared in this
scope
/datalogger.h: In member function 'void
CDataLogger::logData(uint16_t, int32_t)':
datalogger.h:124: error: 'Serial3' was not declared in this
scope
/datalogger.h: In member function 'void
CDataLogger::logData(uint16_t, int, int, int)':
datalogger.h:142: error: 'Serial3' was not declared in this
scope
megalogger.ino: In member function 'void COBDLogger::setup()':
megalogger:86: error: 'Serial2' was not declared in this scope
megalogger.ino: In member function 'virtual void
COBDLogger::dataIdleLoop()':
megalogger:249: error: 'Serial2' was not declared in this scope
megalogger.ino: In member function 'void
COBDLogger::processGPS()':
megalogger:270: error: 'Serial2' was not declared in this scope
megalogger.ino: In function 'void setup()':
megalogger:651: error: 'Serial2' was not declared in this scope
—
Reply to this email directly or view
it on GitHub.
I don't understand your reply. The Mega has two Serials and two I2Cs right? That is connected to the Logger Shield.
I just downloaded the code and unzipped it and verified it as it is with no code changes whatsoever and this error showed up.
If the compiler says Serial2 and
Serial3 are not defined, there is only one possibility - you
didn't choose the correct board type.
On 11/07/2014 10:11 AM, Azzam Aziz wrote:
I don't understand your reply. The Mega has two Serials and two
I2Cs right? That is connected to the Logger Shield.
I just downloaded the code and unzipped it and verified it as
it is with no code changes whatsoever and this error showed up.
—
Reply to this email directly or view
it on GitHub.
Thank you sir!
In this line SerialBLE.begin(STREAM_BAUDRATE);
In file included from megalogger.ino:25: /datalogger.h: In member function 'void CDataLogger::initSender()': datalogger.h:68: error: 'Serial3' was not declared in this scope /datalogger.h: In member function 'void CDataLogger::logData(char)': datalogger.h:87: error: 'Serial3' was not declared in this scope /datalogger.h: In member function 'void CDataLogger::logData(uint16_t, int)': datalogger.h:106: error: 'Serial3' was not declared in this scope /datalogger.h: In member function 'void CDataLogger::logData(uint16_t, int32_t)': datalogger.h:124: error: 'Serial3' was not declared in this scope /datalogger.h: In member function 'void CDataLogger::logData(uint16_t, int, int, int)': datalogger.h:142: error: 'Serial3' was not declared in this scope megalogger.ino: In member function 'void COBDLogger::setup()': megalogger:86: error: 'Serial2' was not declared in this scope megalogger.ino: In member function 'virtual void COBDLogger::dataIdleLoop()': megalogger:249: error: 'Serial2' was not declared in this scope megalogger.ino: In member function 'void COBDLogger::processGPS()': megalogger:270: error: 'Serial2' was not declared in this scope megalogger.ino: In function 'void setup()': megalogger:651: error: 'Serial2' was not declared in this scope