mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 11:59:12 +03:00
249
This commit is contained in:
@@ -43,7 +43,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "h4",
|
"type": "h4",
|
||||||
"title": "LittleFS version: 248"
|
"title": "LittleFS version: 249"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "hr"
|
"type": "hr"
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
//=================Firmeare=================
|
//=================Firmeare=================
|
||||||
#define FIRMWARE_NAME "esp8266-iotm"
|
#define FIRMWARE_NAME "esp8266-iotm"
|
||||||
#define FIRMWARE_VERSION 248
|
#define FIRMWARE_VERSION 249
|
||||||
#define FLASH_4MB true
|
#define FLASH_4MB true
|
||||||
|
|
||||||
//=================System===================
|
//=================System===================
|
||||||
|
|||||||
@@ -28,10 +28,13 @@ class ButtonInClass : public LineParsing {
|
|||||||
buttons[switch_number].update();
|
buttons[switch_number].update();
|
||||||
if (buttons[switch_number].fell()) {
|
if (buttons[switch_number].fell()) {
|
||||||
String key = jsonReadStr(configOptionJson, "switch_num_" + String(switch_number));
|
String key = jsonReadStr(configOptionJson, "switch_num_" + String(switch_number));
|
||||||
state = !state;
|
state = 0;
|
||||||
switchChangeVirtual(key, String(state));
|
switchChangeVirtual(key, String(state));
|
||||||
}
|
}
|
||||||
if (buttons[switch_number].rose()) {
|
if (buttons[switch_number].rose()) {
|
||||||
|
String key = jsonReadStr(configOptionJson, "switch_num_" + String(switch_number));
|
||||||
|
state = 1;
|
||||||
|
switchChangeVirtual(key, String(state));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
switch_number++;
|
switch_number++;
|
||||||
|
|||||||
Reference in New Issue
Block a user