Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能否编译个最新的release,没有环境 #19

Open
chibm opened this issue Dec 3, 2022 · 7 comments
Open

能否编译个最新的release,没有环境 #19

chibm opened this issue Dec 3, 2022 · 7 comments

Comments

@chibm
Copy link

chibm commented Dec 3, 2022

搭建环境不是我等小白能搞的,,期盼大佬出手

@chibm
Copy link
Author

chibm commented Dec 6, 2022

好吧,作者没看到,我研究了下,自己编译出来了,不会的同学可来我的fork直接下载固件,,保留了原作者信息.
https://github.com/chibm/esp_dc1

Clip_20221206_163852

@neckyaan
Copy link

neckyaan commented Dec 29, 2022

还有一个问题:我跟踪了下日志,发现除了之前的问题要写flash外,switchRelay也会经常写flash ,最夸张的是我插了个400w左右的电器,每一分钟就要写一次flash.我认为,开关状态可以由homeassistant负责管理,完全没必要写在flash中。我的临时解决方案是把563行以下的内容:
if (isSave && config.power_on_state > 0)
{
bitWrite(config.last_state, ch, isOn);
bitSet(operationFlag, 1);
Config::delaySaveConfig(10)
}

修改以下内容:
if (isSave && config.power_on_state > 0)
{
//我修改了参数,operationFlag为1会产1分钟写一次falsh,并注销了Config::delaySaveConfig(10);
bitWrite(config.last_state, ch, isOn);
bitSet(operationFlag, 0);
//Config::delaySaveConfig(10);
Debug::AddInfo(PSTR("my_test DC1::switchRelay delaysaveconfig"));
}

@qlwz
Copy link
Owner

qlwz commented Dec 29, 2022

上电状态设置为:开关通电时断开

@neckyaan
Copy link

neckyaan commented Jan 7, 2023

上电状态设置为开关通电时断开后,好像还是一样的。

@xuexijiaoben
Copy link

上电状态设置为开关通电时断开后,好像还是一样的。

是有你说的这个问题么,用你的方法能解决不,谢谢啦

@neckyaan
Copy link

neckyaan commented Jun 2, 2023

已经解决

@kongweiteng
Copy link

编译最新的固件,是因为修复了什么问题或者有什么功能新增吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants