-
Notifications
You must be signed in to change notification settings - Fork 39
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
deep_sleep
component fails to build on ESP8266
#3348
Comments
I believe I'm seeing the same issue, and I am on esphome 2022.6.2:
|
for those of you who would like to work around the issue: --- components/deep_sleep/deep_sleep_component.cpp.orig 2022-08-02 07:30:45.252204000 +0700
+++ components/deep_sleep/deep_sleep_component.cpp 2022-08-02 07:33:40.745285000 +0700
@@ -115,7 +115,7 @@
ESP_LOGI(TAG, "Beginning Deep Sleep");
if (this->sleep_duration_.has_value())
- ESP_LOGI(TAG, "Sleeping for %" PRId64 "us", *this->sleep_duration_);
+ ESP_LOGI(TAG, "Sleeping for %" "lld" "us", *this->sleep_duration_);
App.run_safe_shutdown_hooks();
|
Thanks for this suggestion, but I'm struggling wiht how to implement it. I ran esphome clean then esphome compile , got the error, edited the .cpp file under .esphome/build, ran compile again, and there it is again. It seems esphome is overwriting the files in .esphome/build each time I run compile. Is there a step I'm missing in the build process, or is there a different location to edit the source? Never mind, I figured out that I need to build esphome itself with the change, and now things are back to working. |
The problem
deep_sleep
component fails to build on ESP8266.Which version of ESPHome has the issue?
2022.5.1
What type of installation are you using?
pip
Which version of Home Assistant has the issue?
N/A
What platform are you using?
ESP8266
Board
nodemcuv2
Component causing the issue
deep_sleep
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
see esphome/esphome@8be704e
time
component also has this issue.https://github.com/esphome/esphome/blob/dev/esphome/components/time/automation.cpp#L45-L50
The text was updated successfully, but these errors were encountered: