Kaynağa Gözat

Avoid spurios SPI error with 0-length transactions

S3
jrhoffa 3 yıl önce
ebeveyn
işleme
1ba4562d8a
1 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. +3
    -0
      main/spi_leds.cpp

+ 3
- 0
main/spi_leds.cpp Dosyayı Görüntüle

@@ -107,6 +107,9 @@ static uint8_t* encode_byte(uint8_t *out, uint8_t in) {
}

void SPI_LEDs::show() {
// We generate a spurious SPI error with a 0-length transaction.
if (length <= 0) return;

static int index = 0;
int ret;
const Color *pixel = pixels;


Yükleniyor…
İptal
Kaydet