This website works better with JavaScript.
Home
Explore
Help
Sign In
Sol-Solis
/
blinky-esp
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Avoid spurios SPI error with 0-length transactions
S3
jrhoffa
3 years ago
parent
64a49904bb
commit
1ba4562d8a
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
main/spi_leds.cpp
+ 3
- 0
main/spi_leds.cpp
View File
@@ -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…
Cancel
Save