Make motor parameters apply without reboot

Add callback to parameter definition to call after parameter is changed.
This commit is contained in:
Oleg Kalachev
2026-02-19 04:56:12 +03:00
parent b2daf2587f
commit a687303062
3 changed files with 12 additions and 8 deletions

View File

@@ -165,6 +165,7 @@ void delay(uint32_t ms) {
bool ledcAttach(uint8_t pin, uint32_t freq, uint8_t resolution) { return true; }
bool ledcWrite(uint8_t pin, uint32_t duty) { return true; }
uint32_t ledcChangeFrequency(uint8_t pin, uint32_t freq, uint8_t resolution) { return freq; }
unsigned long __micros;
unsigned long __resetTime = 0;