This website works better with JavaScript.
Home
Explore
Help
Sign In
mh
/
espurna-mirror
mirror of
https://github.com/xoseperez/espurna
Watch
1
Star
0
Fork
1
Code
Releases
71
Activity
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
a9be47937b
commit
976176cfaa
4 changed files
with
4 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
code/espurna/led.cpp
+1
-1
code/espurna/relay.cpp
+1
-1
code/espurna/scheduler.cpp
+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
const
expr
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
const
expr
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
const
expr
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
"
,
Write
Preview
Loading…
Cancel
Save