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

CopyThreads throwing error when compiling to Attiny85 #1

Closed
max0410 opened this issue Aug 14, 2018 · 2 comments
Closed

CopyThreads throwing error when compiling to Attiny85 #1

max0410 opened this issue Aug 14, 2018 · 2 comments

Comments

@max0410
Copy link

max0410 commented Aug 14, 2018

When I try compiling the example program CTBlink.ino to my arduino nano it works just fine. But, when I changed the board in Tools settings to Atting85 I get this error:

C:\Users\Userl\Documents\Arduino\libraries\CopyThreads\src\Cth.cpp: In function 'void loop()':

C:\Users\User\Documents\Arduino\libraries\CopyThreads\src\Cth.cpp:70:6: error: 'serialEventRun' was not declared in this scope

  if (serialEventRun) serialEventRun();

      ^

exit status 1
Error compiling for board ATtiny25/45/85.

Is there any solution or bit of code that I can use to fix this issue?

@jensh
Copy link
Owner

jensh commented Aug 14, 2018

Probably this line is not needed for ATTinys. You can try to comment this line out:

 //  if (serialEventRun) serialEventRun();

@max0410
Copy link
Author

max0410 commented Aug 14, 2018

It worked! Thanks a lot!

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

2 participants