Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Found a bug in the library while compiling.. #1

Open
dattasaurabh82 opened this issue Feb 19, 2016 · 0 comments
Open

Found a bug in the library while compiling.. #1

dattasaurabh82 opened this issue Feb 19, 2016 · 0 comments

Comments

@dattasaurabh82
Copy link

While compiling it was throwing me errors saying "Serial1 was not declared in HWSerial.cpp". As a chain reaction there were several other chain reaction errors. So I looked into the HWSerial.cpp file. and I put a new line after these two line at the begining:

#include "HWSerial.h"
#ifdef MEGA 

It's just defining Serial1 and it looks like

HWSerial Serial1;

SO totally it looks something like :

#include "HWSerial.h"
#ifdef MEGA

HWSerial Serial1;

HWSerial::HWSerial()
{
     Serial1.begin(9600);

} 

and so on 
....
....
....

After that it compiled.. But I don't know if it's correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant