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

'Switch' does not name a type #3

Closed
ondragottwald opened this issue Oct 24, 2021 · 2 comments
Closed

'Switch' does not name a type #3

ondragottwald opened this issue Oct 24, 2021 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@ondragottwald
Copy link

If I use Arduino Uno with display the compiler stop at page advanceprg with error:
advanceprg:21:1: error: 'Switch' does not name a type
Switch prgSwitch = Switch(SW_PRG);
^~~~~~
and a few more lines of errors.

I inserted avdweb_Switch.h library to the list of libraries on page TPS.
It is the right solution to the issue?

@willie68
Copy link
Owner

Hi,
thanks for your feedback.
In the actual master the advweb_Switch lib is imported when the define TPS_ENHANCEMENT is activated.
(see line 177ff

#ifdef TPS_ENHANCEMENT
#include <avdweb_Switch.h>
#endif

)
TPS_USE_DISPLAY can only be used with TPS_ENHANCEMENT. But that dependency is actually not automatically checked and unfortunately not documented. So i will document this dependency in the TPS.ino file...

@willie68 willie68 self-assigned this Oct 25, 2021
@willie68 willie68 added the documentation Improvements or additions to documentation label Oct 25, 2021
@willie68
Copy link
Owner

fixed in V0.13.1

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

No branches or pull requests

2 participants