mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-05-05 21:45:52 +00:00
remove digitalWrite at init
This commit is contained in:
@@ -840,11 +840,6 @@ void System::button_init() {
|
|||||||
|
|
||||||
// set the LED to on or off when in normal operating mode
|
// set the LED to on or off when in normal operating mode
|
||||||
void System::led_init() {
|
void System::led_init() {
|
||||||
// RGB: drive strip low before init. Standard GPIO LED: pinMode must precede digitalWrite (ESP32 Arduino hal).
|
|
||||||
if (led_type_) {
|
|
||||||
EMSESP_RGB_WRITE(led_gpio_, 0, 0, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!led_gpio_) { // 0 means disabled
|
if (!led_gpio_) { // 0 means disabled
|
||||||
LOG_INFO("LED disabled");
|
LOG_INFO("LED disabled");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user