mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-07 00:37:04 +01:00
ws: use the same type for the schema keys array
Plus, it's not really a constexpr in this context
This commit is contained in:
@@ -320,7 +320,7 @@ void _ledWebSocketOnConnected(JsonObject& root) {
|
||||
JsonObject& config = root.createNestedObject("ledConfig");
|
||||
|
||||
{
|
||||
static constexpr const char* const schema_keys[] PROGMEM = {
|
||||
static const char* const schema_keys[] PROGMEM = {
|
||||
"ledGpio",
|
||||
"ledInv",
|
||||
"ledMode"
|
||||
|
||||
@@ -1225,7 +1225,7 @@ void _relayWebSocketSendRelays(JsonObject& root) {
|
||||
config["start"] = 0;
|
||||
|
||||
{
|
||||
static constexpr const char* const schema_keys[] PROGMEM = {
|
||||
static const char* const schema_keys[] PROGMEM = {
|
||||
"relayProv",
|
||||
"relayName",
|
||||
"relayBoot",
|
||||
|
||||
@@ -159,7 +159,7 @@ void _schWebSocketOnConnected(JsonObject &root){
|
||||
config["max"] = scheduler::build::max();
|
||||
|
||||
{
|
||||
static constexpr const char* const schema_keys[] PROGMEM = {
|
||||
static const char* const schema_keys[] PROGMEM = {
|
||||
"schEnabled",
|
||||
"schRestore",
|
||||
"schType",
|
||||
|
||||
@@ -1903,7 +1903,7 @@ void onConnected(JsonObject& root) {
|
||||
root["max"] = wifi::build::NetworksMax;
|
||||
|
||||
{
|
||||
const char* schema_keys[] = {
|
||||
static const char* const schema_keys[] PROGMEM = {
|
||||
"ssid",
|
||||
"pass",
|
||||
"ip",
|
||||
|
||||
Reference in New Issue
Block a user