This website works better with JavaScript.
Почетна
Преглед
Помоћ
Пријавите Се
Sol-Solis
/
blinky-esp
Прати
1
Волим
0
Креирај огранак
0
Код
Дискусије
0
Захтеви за спајање
0
Издања
0
Вики
Activity
Преглед изворни кода
Avoid spurios SPI error with 0-length transactions
master
jrhoffa
пре 3 година
родитељ
19cda3ec5a
комит
b82f7900a3
1 измењених фајлова
са
3 додато
и
0 уклоњено
Подељен поглед
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
main/spi_leds.cpp
+ 3
- 0
main/spi_leds.cpp
Прегледај датотеку
@@ -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;
Write
Preview
Loading…
Откажи
Сачувај