mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-30 17:26:12 +02:00
0.8.70 - 2024-02-01
* prevent sending commands to inverter which isn't active #1387 * protect commands from popup in `/live` if password is set #1199
This commit is contained in:
parent
ae799b4c21
commit
4d7362fa6b
12 changed files with 156 additions and 58 deletions
|
@ -97,9 +97,8 @@ void app::setup() {
|
|||
esp_task_wdt_reset();
|
||||
|
||||
mWeb.setup(this, &mSys, mConfig);
|
||||
mWeb.setProtection(strlen(mConfig->sys.adminPwd) != 0);
|
||||
|
||||
mApi.setup(this, &mSys, mWeb.getWebSrvPtr(), mConfig);
|
||||
mProtection = Protection::getInstance(mConfig->sys.adminPwd);
|
||||
|
||||
#ifdef ENABLE_SYSLOG
|
||||
mDbgSyslog.setup(mConfig); // be sure to init after mWeb.setup (webSerial uses also debug callback)
|
||||
|
@ -182,6 +181,8 @@ void app::onNetwork(bool gotIp) {
|
|||
void app::regularTickers(void) {
|
||||
DPRINTLN(DBG_DEBUG, F("regularTickers"));
|
||||
everySec(std::bind(&WebType::tickSecond, &mWeb), "webSc");
|
||||
everySec([this]() { mProtection->tickSecond(); }, "prot");
|
||||
|
||||
// Plugins
|
||||
#if defined(PLUGIN_DISPLAY)
|
||||
if (DISP_TYPE_T0_NONE != mConfig->plugin.display.type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue