Browse Source

ws: use the same type for the schema keys array

Plus, it's not really a constexpr in this context
pull/2439/head
Maxim Prokhorov 3 years ago
parent
commit
976176cfaa
4 changed files with 4 additions and 4 deletions
  1. +1
    -1
      code/espurna/led.cpp
  2. +1
    -1
      code/espurna/relay.cpp
  3. +1
    -1
      code/espurna/scheduler.cpp
  4. +1
    -1
      code/espurna/wifi.cpp

+ 1
- 1
code/espurna/led.cpp View File

@ -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"


+ 1
- 1
code/espurna/relay.cpp View File

@ -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",


+ 1
- 1
code/espurna/scheduler.cpp View File

@ -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",


+ 1
- 1
code/espurna/wifi.cpp View File

@ -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",


Loading…
Cancel
Save