Aktualizace na novou obsluhu povoleni/zakazani preruseni
This commit is contained in:
parent
237b871a56
commit
3f455a357b
@ -66,13 +66,13 @@ void wsLED::show()
|
|||||||
ESP_ERROR_CHECK(rmt_write_items(LED_RMT_TX_CHANNEL, led_data_buffer, LED_BUFFER_ITEMS, false));
|
ESP_ERROR_CHECK(rmt_write_items(LED_RMT_TX_CHANNEL, led_data_buffer, LED_BUFFER_ITEMS, false));
|
||||||
mEndTime = micros() + 100; // TODO: unfortunately this time is not valid for ESP32 using RMT peripheral
|
mEndTime = micros() + 100; // TODO: unfortunately this time is not valid for ESP32 using RMT peripheral
|
||||||
#else
|
#else
|
||||||
IntCtrl.disable();
|
Interrupts::disable();
|
||||||
#if defined(WSLED_PL9823)
|
#if defined(WSLED_PL9823)
|
||||||
espShow(mPin, color, 1 * 3, false);
|
espShow(mPin, color, 1 * 3, false);
|
||||||
#else
|
#else
|
||||||
espShow(mPin, color, 1 * 3, true);
|
espShow(mPin, color, 1 * 3, true);
|
||||||
#endif
|
#endif
|
||||||
IntCtrl.enable();
|
Interrupts::enable();
|
||||||
mEndTime = micros();
|
mEndTime = micros();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user