Add some comments
Some checks failed
Build_development / be_solidify (push) Has been cancelled
Build_development / push_solidified (push) Has been cancelled
Build_development / safeboot-images (tasmota32-safeboot) (push) Has been cancelled
Build_development / safeboot-images (tasmota32c2-safeboot) (push) Has been cancelled
Build_development / safeboot-images (tasmota32c3-safeboot) (push) Has been cancelled
Build_development / safeboot-images (tasmota32c3ser-safeboot) (push) Has been cancelled
Build_development / safeboot-images (tasmota32c5-safeboot) (push) Has been cancelled
Build_development / safeboot-images (tasmota32c5ser-safeboot) (push) Has been cancelled
Build_development / safeboot-images (tasmota32c6-safeboot) (push) Has been cancelled
Build_development / safeboot-images (tasmota32c6ser-safeboot) (push) Has been cancelled
Build_development / safeboot-images (tasmota32p4-safeboot) (push) Has been cancelled
Build_development / safeboot-images (tasmota32p4ser-safeboot) (push) Has been cancelled
Build_development / safeboot-images (tasmota32s2-safeboot) (push) Has been cancelled
Build_development / safeboot-images (tasmota32s2cdc-safeboot) (push) Has been cancelled
Build_development / safeboot-images (tasmota32s3-safeboot) (push) Has been cancelled
Build_development / safeboot-images (tasmota32s3ser-safeboot) (push) Has been cancelled
Build_development / safeboot-images (tasmota32solo1-safeboot) (push) Has been cancelled
Build_development / base-images (tasmota) (push) Has been cancelled
Build_development / base-images (tasmota-4M) (push) Has been cancelled
Build_development / base-images (tasmota-display) (push) Has been cancelled
Build_development / base-images (tasmota-ir) (push) Has been cancelled
Build_development / base-images (tasmota-knx) (push) Has been cancelled
Build_development / base-images (tasmota-lite) (push) Has been cancelled
Build_development / base-images (tasmota-minimal) (push) Has been cancelled
Build_development / base-images (tasmota-sensors) (push) Has been cancelled
Build_development / base-images (tasmota-zbbridge) (push) Has been cancelled
Build_development / base-images (tasmota-zigbee) (push) Has been cancelled
Build_development / base32-images (tasmota32) (push) Has been cancelled
Build_development / base32-images (tasmota32-bluetooth) (push) Has been cancelled
Build_development / base32-images (tasmota32-display) (push) Has been cancelled
Build_development / base32-images (tasmota32-ir) (push) Has been cancelled
Build_development / base32-images (tasmota32-lvgl) (push) Has been cancelled
Build_development / base32-images (tasmota32-nspanel) (push) Has been cancelled
Build_development / base32-images (tasmota32-webcam) (push) Has been cancelled
Build_development / base32-images (tasmota32-zbbrdgpro) (push) Has been cancelled
Build_development / base32-images (tasmota32c2) (push) Has been cancelled
Build_development / base32-images (tasmota32c3) (push) Has been cancelled
Build_development / base32-images (tasmota32c5) (push) Has been cancelled
Build_development / base32-images (tasmota32c6) (push) Has been cancelled
Build_development / base32-images (tasmota32p4) (push) Has been cancelled
Build_development / base32-images (tasmota32s2) (push) Has been cancelled
Build_development / base32-images (tasmota32s2cdc) (push) Has been cancelled
Build_development / base32-images (tasmota32s3) (push) Has been cancelled
Build_development / base32-images (tasmota32solo1) (push) Has been cancelled
Build_development / language-images (AD, tasmota) (push) Has been cancelled
Build_development / language-images (AD, tasmota32) (push) Has been cancelled
Build_development / language-images (AF, tasmota) (push) Has been cancelled
Build_development / language-images (AF, tasmota32) (push) Has been cancelled
Build_development / language-images (BG, tasmota) (push) Has been cancelled
Build_development / language-images (BG, tasmota32) (push) Has been cancelled
Build_development / language-images (BR, tasmota) (push) Has been cancelled
Build_development / language-images (BR, tasmota32) (push) Has been cancelled
Build_development / language-images (CN, tasmota) (push) Has been cancelled
Build_development / language-images (CN, tasmota32) (push) Has been cancelled
Build_development / language-images (CZ, tasmota) (push) Has been cancelled
Build_development / language-images (CZ, tasmota32) (push) Has been cancelled
Build_development / language-images (DE, tasmota) (push) Has been cancelled
Build_development / language-images (DE, tasmota32) (push) Has been cancelled
Build_development / language-images (ES, tasmota) (push) Has been cancelled
Build_development / language-images (ES, tasmota32) (push) Has been cancelled
Build_development / language-images (FR, tasmota) (push) Has been cancelled
Build_development / language-images (FR, tasmota32) (push) Has been cancelled
Build_development / language-images (FY, tasmota) (push) Has been cancelled
Build_development / language-images (FY, tasmota32) (push) Has been cancelled
Build_development / language-images (GR, tasmota) (push) Has been cancelled
Build_development / language-images (GR, tasmota32) (push) Has been cancelled
Build_development / language-images (HE, tasmota) (push) Has been cancelled
Build_development / language-images (HE, tasmota32) (push) Has been cancelled
Build_development / language-images (HU, tasmota) (push) Has been cancelled
Build_development / language-images (HU, tasmota32) (push) Has been cancelled
Build_development / language-images (IT, tasmota) (push) Has been cancelled
Build_development / language-images (IT, tasmota32) (push) Has been cancelled
Build_development / language-images (KO, tasmota) (push) Has been cancelled
Build_development / language-images (KO, tasmota32) (push) Has been cancelled
Build_development / language-images (LT, tasmota) (push) Has been cancelled
Build_development / language-images (LT, tasmota32) (push) Has been cancelled
Build_development / language-images (NL, tasmota) (push) Has been cancelled
Build_development / language-images (NL, tasmota32) (push) Has been cancelled
Build_development / language-images (PL, tasmota) (push) Has been cancelled
Build_development / language-images (PL, tasmota32) (push) Has been cancelled
Build_development / language-images (PT, tasmota) (push) Has been cancelled
Build_development / language-images (PT, tasmota32) (push) Has been cancelled
Build_development / language-images (RO, tasmota) (push) Has been cancelled
Build_development / language-images (RO, tasmota32) (push) Has been cancelled
Build_development / language-images (RU, tasmota) (push) Has been cancelled
Build_development / language-images (RU, tasmota32) (push) Has been cancelled
Build_development / language-images (SE, tasmota) (push) Has been cancelled
Build_development / language-images (SE, tasmota32) (push) Has been cancelled
Build_development / language-images (SK, tasmota) (push) Has been cancelled
Build_development / language-images (SK, tasmota32) (push) Has been cancelled
Build_development / language-images (TR, tasmota) (push) Has been cancelled
Build_development / language-images (TR, tasmota32) (push) Has been cancelled
Build_development / language-images (TW, tasmota) (push) Has been cancelled
Build_development / language-images (TW, tasmota32) (push) Has been cancelled
Build_development / language-images (UK, tasmota) (push) Has been cancelled
Build_development / language-images (UK, tasmota32) (push) Has been cancelled
Build_development / language-images (VN, tasmota) (push) Has been cancelled
Build_development / language-images (VN, tasmota32) (push) Has been cancelled
Build_development / Start_final_copy (push) Has been cancelled

This commit is contained in:
Theo Arends 2026-01-08 14:52:20 +01:00
parent 5680069768
commit 3c737580c4

View File

@ -103,7 +103,7 @@ void CounterIsrArg(void *arg) {
void CounterInterruptDisable(bool state) void CounterInterruptDisable(bool state)
{ {
if (state) { // Disable interrupts if (state) { // Disable interrupts
if (Settings->flag4.zerocross_dimmer) { if (Settings->flag4.zerocross_dimmer) { // SetOption99 - (PWM Dimmer) Enable zerocross dimmer (1)
return; return;
} }
if (Counter.any_counter) { if (Counter.any_counter) {
@ -164,15 +164,15 @@ uint32_t CounterPinSet(int32_t counter, int32_t value, bool add) {
return 0; return 0;
} }
void CounterInit(void) void CounterInit(void)
{ {
for (uint32_t i = 0; i < MAX_COUNTERS; i++) { for (uint32_t i = 0; i < MAX_COUNTERS; i++) {
if (PinUsed(GPIO_CNTR1, i)) { if (PinUsed(GPIO_CNTR1, i)) {
Counter.any_counter = true; Counter.any_counter = true;
pinMode(Pin(GPIO_CNTR1, i), bitRead(Counter.no_pullup, i) ? INPUT : INPUT_PULLUP); pinMode(Pin(GPIO_CNTR1, i), bitRead(Counter.no_pullup, i) ? INPUT : INPUT_PULLUP);
if ((0 == Settings->pulse_counter_debounce_low) && (0 == Settings->pulse_counter_debounce_high) && !Settings->flag4.zerocross_dimmer) { if ((0 == Settings->pulse_counter_debounce_low) && // CounterDebounceLow
(0 == Settings->pulse_counter_debounce_high) && // CounterDebounceHigh
!Settings->flag4.zerocross_dimmer) { // SetOption99 - (PWM Dimmer) Enable zerocross dimmer (1)
Counter.pin_state = 0; Counter.pin_state = 0;
attachInterruptArg(Pin(GPIO_CNTR1, i), CounterIsrArg, &ctr_index[i], FALLING); attachInterruptArg(Pin(GPIO_CNTR1, i), CounterIsrArg, &ctr_index[i], FALLING);
} else { } else {