openeew / openeew-firmware

Firmware for an OpenEEW sensor.
Apache License 2.0
8 stars 8 forks source link

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

Open DhruvaG2000 opened 2 years ago

DhruvaG2000 commented 2 years ago

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