Commit Graph
50 Commits
Author SHA1 Message Date
J. Nick Koston db84d8e8dc tweak 2025-07-06 18:49:41 -05:00
J. Nick Koston ad51e647af tweak 2025-07-06 18:48:50 -05:00
J. Nick Koston 0900fd3cea tweak 2025-07-06 18:42:47 -05:00
J. Nick Koston ba8f3d3f63 tweak 2025-07-06 18:36:05 -05:00
J. Nick Koston 2759f3828e tweak 2025-07-06 18:34:56 -05:00
J. Nick Koston f395767766 tweak 2025-07-06 18:27:49 -05:00
J. Nick Koston 82d68c87e2 adjust 2025-07-06 18:24:00 -05:00
J. Nick Koston e077e6cec7 adjust 2025-07-06 18:17:16 -05:00
J. Nick Koston 939d01dd99 preen 2025-07-06 18:08:50 -05:00
J. Nick Koston 4900f7c7ca preen 2025-07-06 18:07:34 -05:00
J. Nick Koston 48957aee8b preen 2025-07-06 18:03:53 -05:00
J. Nick Koston e355ce04f7 preen 2025-07-06 18:01:21 -05:00
J. Nick Koston 758e5b89bb preen 2025-07-06 17:53:56 -05:00
J. Nick Koston 3ffdd1d451 preen 2025-07-06 17:42:57 -05:00
J. Nick Koston 4c1b8c8b96 preen 2025-07-06 17:33:50 -05:00
J. Nick Koston 3ca956cd6a fix merge error 2025-07-06 17:27:32 -05:00
J. Nick Koston 2e24a11a1d Merge remote-tracking branch 'upstream/dev' into heap_scheduler_stress_component 2025-07-06 17:21:36 -05:00
J. Nick KostonandCopilot b6fade7339 Fix defer() thread safety issues on multi-core platforms (#9317)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-07-07 10:01:51 +12:00
J. Nick Koston 8e8ef83780 cleanup 2025-07-06 11:05:18 -05:00
J. Nick Koston 2a15f35e9d cleanup 2025-07-06 11:04:04 -05:00
J. Nick Koston b00adbddce fix race 2025-07-06 10:40:44 -05:00
J. Nick Koston a71030c4de fix race 2025-07-06 10:40:19 -05:00
J. Nick KostonandCopilot 140ca070a2 Optimize scheduler string storage to eliminate heap allocations (#9251)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-30 15:40:36 +12:00
J. Nick Koston 7fc5bfd787 Reduce RAM usage for scheduled tasks (#9180) 2025-06-23 14:09:34 +12:00
487e1f871f use `encode_uintXX` (#8847)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-11 17:06:45 +12:00
J. Nick Koston 574aabdede Reduce number of calls to fetch time in the main loop (#8804) 2025-05-19 07:48:57 +12:00
Clyde Stubbs b8d83d0765 [debug] Show source of last software reboot (#8595) 2025-05-04 23:31:37 -05:00
Clyde Stubbs 58fe8b39b2 [scheduler] Properly handle millis() overflow (#8197) 2025-03-27 02:09:22 -05:00
Jimmy Hedman 979f014799 Make scheduler debuging work with idf >= 5 (#5052) 2023-07-05 22:05:27 +12:00
Jimmy Hedman 87c0f48095 Prepare debug and logger component to work with idf 5.0 (#5036) 2023-07-04 12:49:27 +12:00
Jörg Thalheim 421ebcc8b2 use PRIx macros for printing u32/i32 ints (#4671)
This fix compilation issues with the latest esp-idf.
2023-04-10 22:20:02 +00:00
Oxan van Leeuwen 86c0e6114f Lock scheduler items while modifying them (#4410)
* Cosmetic fixes to scheduler code

* Add generic Mutex API

* Lock scheduler items while modifying them

* Always defer MQTT callbacks on Arduino
2023-02-26 18:43:08 +00:00
Dan Jackson 029ac75a04 set_retry: add retries remaining parameter to the provided function (#4251) 2023-01-18 14:26:32 +13:00
Dan Jackson ff4fd497c4 Component::set_retry updates (#3305) 2022-12-22 20:48:15 +13:00
Otto Winter 235a97ea10 Make retry scheduler efficient (#3225) 2022-05-11 07:54:00 +12:00
Otto Winter d2b209234f Improve ESP8266 iram usage (#3223) 2022-02-19 15:09:17 +01:00
Oxan van LeeuwenandJesse Hills 80d03a631e Force braces around multi-line statements (#3094)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2022-01-25 08:56:36 +13:00
448e1690aa Add retry handler (#2721)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
2021-11-18 11:59:40 +13:00
Otto WinterandJesse Hills ac0d921413 ESP-IDF support and generic target platforms (#2303)
* Socket refactor and SSL

* esp-idf temp

* Fixes

* Echo component and noise

* Add noise API transport support

* Updates

* ESP-IDF

* Complete

* Fixes

* Fixes

* Versions update

* New i2c APIs

* Complete i2c refactor

* SPI migration

* Revert ESP Preferences migration, too complex for now

* OTA support

* Remove echo again

* Remove ssl again

* GPIOFlags updates

* Rename esphal and ICACHE_RAM_ATTR

* Make ESP32 arduino compilable again

* Fix GPIO flags

* Complete pin registry refactor and fixes

* Fixes to make test1 compile

* Remove sdkconfig file

* Ignore sdkconfig file

* Fixes in reviewing

* Make test2 compile

* Make test4 compile

* Make test5 compile

* Run clang-format

* Fix lint errors

* Use esp-idf APIs instead of btStart

* Another round of fixes

* Start implementing ESP8266

* Make test3 compile

* Guard esp8266 code

* Lint

* Reformat

* Fixes

* Fixes v2

* more fixes

* ESP-IDF tidy target

* Convert ARDUINO_ARCH_ESPxx

* Update WiFiSignalSensor

* Update time ifdefs

* OTA needs millis from hal

* RestartSwitch needs delay from hal

* ESP-IDF Uart

* Fix OTA blank password

* Allow setting sdkconfig

* Fix idf partitions and allow setting sdkconfig from yaml

* Re-add read/write compat APIs and fix esp8266 uart

* Fix esp8266 store log strings in flash

* Fix ESP32 arduino preferences not initialized

* Update ifdefs

* Change how sdkconfig change is detected

* Add checks to ci-custom and fix them

* Run clang-format

* Add esp-idf clang-tidy target and fix errors

* Fixes from clang-tidy idf round 2

* Fixes from compiling tests with esp-idf

* Run clang-format

* Switch test5.yaml to esp-idf

* Implement ESP8266 Preferences

* Lint

* Re-do PIO package version selection a bit

* Fix arduinoespressif32 package version

* Fix unit tests

* Lint

* Lint fixes

* Fix readv/writev not defined

* Fix graphing component

* Re-add all old options from core/config.py

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
2021-09-20 11:47:51 +02:00
Peter van Dijk 7f76f3726f LOG_UPDATE_INTERVAL: correctly report "never" (#2240) 2021-09-06 14:47:13 +12:00
Otto Winter 1b89174558 Store source package in Component for debugging (#2070) 2021-08-24 06:49:19 +12:00
Stefan Agner 501f88ca86 Avoid non-const globals and enable clang-tidy check (#1892) 2021-06-11 08:19:44 +12:00
Guillermo Ruffino b266fb37a3 Fix scheduler with too many cancelled timers (#1309)
* Fix scheduler with too many cancelled timers

* lint

* use variable name
2020-10-15 10:12:31 -03:00
Otto Winter b5af3aa048 Update variable in scheduler (#838)
Fixes https://github.com/esphome/issues/issues/826
2019-11-06 22:35:22 +01:00
Otto Winter 560251ab2a Scheduler fixes (#813)
* Scheduler fixes

Fixes https://github.com/esphome/issues/issues/789, fixes https://github.com/esphome/issues/issues/788

Also changes to use unique_ptr - this should be much safer than the raw pointers form before (though the scoping rules might cause some issues, but looking closely I didn't find anything)

* Disable debugging

* Format
2019-10-31 20:25:16 +01:00
Otto Winter d62ef35860 Fix scheduler first execution (#798)
* Fix scheduler first execution not immediately

* Also update sensor filters
2019-10-24 21:24:57 +02:00
Otto Winter 6c493d10d2 More scheduler fixes 2019-06-30 12:18:27 +02:00
Otto Winter 7b4366bfef Fix scheduler 2019-06-30 09:13:52 +02:00
Otto Winter 8db6f3129c Fix scheduler 2019-06-09 13:19:57 +02:00
Otto Winter b51cbc4207 Add central function scheduler (#609)
* Add central function scheduler

* Avoid unnecessary copies

* Lint

* Prevent more copies, store pointers

* Add never update_interval
2019-06-07 14:26:40 +02:00