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

build error: initializer-string for array of chars is too long #44

Open
DhruvaG2000 opened this issue Jan 4, 2022 · 0 comments
Open

Comments

@DhruvaG2000
Copy link
Contributor

When I try to build the source code in Main on PIO, I get the following error:

In file included from src\main.cpp:17:0:
src\secrets.h:6:19: error: initializer-string for array of chars is too long [-fpermissive]
 char network[2] = "GR";     // add 2 digit network code, eg GR
                   ^
src\secrets.h:7:19: error: initializer-string for array of chars is too long [-fpermissive]
 char station[5] = "GR002";  // add 5 digit station code, eg ST001
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