Thomas Basler
8e90399edd
Fix: Disable SPI3_HOST with ESP32-S2 for SpiManager
...
SPI3_HOST seems not to work in combination with SpiManager when using an ESP32-S2. Therefor don't register this SPI channel
2025-02-14 22:56:59 +01:00
Thomas Basler
5d43ec4fe3
Move SpiManager registration into PinMapping class
2025-02-13 22:50:08 +01:00
Thomas Basler
136657c846
Change datatype for display pins from uint8_t to gpio_num_t
...
This also changes the behavior of undefined pins... They are now introduced as -1 (255 is still compatible)
2025-02-08 00:56:22 +01:00
Thomas Basler
328936dfa0
Move all display related initialization inside the display class
2025-02-08 00:41:16 +01:00
Thomas Basler
7907d23115
Make pinmapping variable const
2025-02-08 00:34:23 +01:00
Thomas Basler
8a227df4a7
Change datatype for eth pins from int to gpio_num_t
2025-02-08 00:30:48 +01:00
Thomas Basler
9d6de56857
Change datatype for w5500 pins from int8_t to gpio_num_t
2025-02-08 00:25:56 +01:00
Thomas Basler
48e2a3d245
Change datatype for cmt pins from int8_t to gpio_num_t
2025-02-08 00:24:44 +01:00
Thomas Basler
a3610abed7
Change datatype for nrf24 pins from int8_t to gpio_num_t
2025-02-08 00:24:44 +01:00
Thomas Basler
c661155028
Change datatype for led pins from int8_t to gpio_num_t
2025-02-08 00:24:44 +01:00
Thomas Basler
e7e607ce6f
Apply automatic code formatting
2025-02-07 22:57:01 +01:00
Thomas Basler
226ed94346
Move network reconfiguration to main loop to prevent crashes
2025-01-24 21:08:38 +01:00
Thomas Basler
653efb41a2
Fix: Syntax error in defines
2025-01-14 23:07:46 +01:00
Thomas Basler
571ba2f350
Fix: Hint regarding required device profile is shown for profiles which don't need a device profile
...
This patch introduces a define which allows to specifiy for each environment if a device profile is absolutly required.
Fixes #2500
2025-01-14 22:13:48 +01:00
Thomas Basler
d068542c94
Merge branch 'pr2421' into dev
2025-01-14 18:37:40 +01:00
Thomas Basler
a0e6942537
Feature: Detect if inverter supports 'Power Distribution Logic'
...
The detection of 'Power Distribution Logic' is based on the firmware version for specific models and is needed to disable any means of overscaling, as it simply does not work when 'Power Distrbution Logic' is available.
Based on the code from @AndreasBoehm
2024-12-31 16:08:37 +01:00
Thomas Basler
11105944be
Fix: Uptime overflow after ~50 days
...
Fixes #2473
2024-12-29 20:53:20 +01:00
Thomas Basler
96ba58af8c
Fix: Wifi.begin was called with wrong parameters
...
The third parameter should be a optional channel name and not a scan method. There exists a separate method for the scan method.
2024-12-18 23:00:27 +01:00
Thomas Basler
5d14454185
Fix: Auto reboot was not triggered on pin mapping change
2024-12-14 13:33:44 +01:00
Thomas Basler
58382be16c
Feature: show hint if device profile missing or not selected
2024-12-14 13:07:31 +01:00
Bernhard Kirchen
b2dcac549c
Fix: need to skip BOM also when migrating config
2024-12-02 22:20:12 +01:00
Florian
041ae7bae7
add Sum of DC Powrr
...
add Sum of DC power of all enabled inverters to Homeassistant MQTT autodiscovery
2024-11-22 08:21:13 +01:00
Thomas Basler
9bfded055a
Remove not required string generation
2024-11-13 19:20:56 +01:00
Thomas Basler
2b07e3c2c8
Organize includes
2024-11-12 20:23:28 +01:00
Thomas Basler
d843ac6422
Fix comment
2024-11-11 22:11:57 +01:00
Thomas Basler
33a9b7454c
Make function getClientId const
2024-11-10 02:45:42 +01:00
Thomas Basler
9a53d6e209
Fix lint errors
2024-11-07 18:30:29 +01:00
Thomas Basler
74e3947cb2
Merge branch 'pr2360' into dev
2024-11-06 19:55:03 +01:00
Thomas Basler
ca060e406e
Remove not required include
2024-11-06 19:39:39 +01:00
Thomas Basler
53b496fd00
Replace multiline print by printf
2024-11-06 19:39:24 +01:00
Thomas Basler
ab60875142
Remove not required include
2024-11-06 19:24:37 +01:00
Thomas Basler
55c98ef880
Fix: skip BOM in JSON files (pin_mapping and config)
...
based on #2387
2024-11-01 22:07:48 +01:00
Thomas Basler
6c903abda1
Fix: Lint Error
2024-11-01 22:01:30 +01:00
Thomas Basler
225cab676a
Fix: Take DST into account when recalculating the sunrise sunset time
...
If it is not considered the correct sunset / sunrise time is only calculated at the next day
Fixes : #2377
2024-10-27 14:03:44 +01:00
Thomas Basler
70f301941b
Feature: Implement language pack support for display texts
2024-10-25 22:38:55 +02:00
Thomas Basler
d259042542
Rewrite display language handling to work with locale strings instead of magic numbers.
...
This is required to implement further i18n functions using the language packs
2024-10-25 21:43:29 +02:00
Bernhard Kirchen
b1edb13b3c
add and use configuration write guard
...
the configuration write guard is now required when the configuration
struct shall be mutated. the write guards locks multiple writers against
each other and also, more importantly, makes the writes synchronous to
the main loop. all code running in the main loop can now be sure that
(1) reads from the configuration struct are non-preemtive and (2) the
configuration struct as a whole is in a consistent state when reading
from it.
NOTE that acquiring a write guard from within the main loop's task will
immediately cause a deadlock and the watchdog will trigger a reset. if
writing from inside the main loop should ever become necessary, the
write guard must be updated to only lock the mutex but not wait for a
signal.
2024-10-22 20:39:23 +02:00
Thomas Basler
2e23c7e0ae
Check if language pack metadata are valid
2024-10-21 20:15:56 +02:00
Thomas Basler
68c87c9217
Move lookup for translation path to separate method
2024-10-21 20:15:56 +02:00
Thomas Basler
e29b86e4dc
Add API endpoint to retrieve custom languages and complete language pack
2024-10-21 19:02:50 +02:00
Thomas Basler
16901482d9
Refactor file handling API and add endpoint to delete files
2024-10-19 12:40:43 +02:00
Thomas Basler
aa9f36ee8f
Rename config API to file API
2024-10-19 11:07:15 +02:00
Thomas Basler
bcf4b70dc9
Fix: cpplint errors
2024-10-15 19:11:17 +02:00
Thomas Basler
f8ad1acca9
Fix: Correct output of wifi disconnect reason code
2024-10-12 21:22:02 +02:00
Thomas Basler
4e293d4b93
Merge branch 'pr2340' into dev
2024-10-09 18:37:06 +02:00
Bernhard Kirchen
096a1ba3a0
Feature: show task details in system info view
...
shows whether or not known tasks are alive, and in particular shows how
much of the respective stack is still available.
2024-10-09 18:31:06 +02:00
LennartF22
6297ae3428
Don't set TX timeout to 0 anymore for HW/USB CDC
...
Due to a change in the Espressif Arduino core, the TX timeout for the HW CDC
(used in the ESP32-S3, for example) must not be set to 0, as otherwise, an
integer underflow occurs.
Removing the TX timeout is not necessary anymore anyways, because it is now
detected when CDC is not active, and attempts to write will return immediately
until the host read something again. Only when the transmit buffer becomes
full initially, the default timeout of just 100ms takes effect once.
For USB CDC (used with the ESP32-S2, for example), the timeout is not relevant
either.
2024-10-09 02:36:37 +02:00
LennartF22
6d048ae01d
Remove EMAC related code for devices that don't have one
2024-10-06 03:08:58 +02:00
Thomas Basler
8f4b89a193
Replace format strings by platform independent macros
2024-10-05 00:50:13 +02:00
Thomas Basler
7dac96810f
Rename NetworkEventCbList_t to DtuNetworkEventCbList_t for further upgrades
2024-10-04 23:02:12 +02:00