Skip to content

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

@DhruvaG2000

Description

@DhruvaG2000

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions