Sebastien Lorquet sebastien@lorquet.fr [nuttx]
2018-02-19 08:19:22 UTC
Hello
LCD drivers and framebuffer operations returns an int to signal an
error, but the core ssd1306 routines are void.
When a transfer error happens in i2c mode (cannot be detected via spi in
write only mode), then loads of error messages can be displayed in the
console.
The attached patch avoids this by allowing the fb/lcd/ssd1306 routines
to stop executing if a transfer error happens.
This has no influence on other LCD drivers, nor on any public API.
The patch is a bit massive, because lots of small similar changes, sorry
for that.
Sebastien
LCD drivers and framebuffer operations returns an int to signal an
error, but the core ssd1306 routines are void.
When a transfer error happens in i2c mode (cannot be detected via spi in
write only mode), then loads of error messages can be displayed in the
console.
The attached patch avoids this by allowing the fb/lcd/ssd1306 routines
to stop executing if a transfer error happens.
This has no influence on other LCD drivers, nor on any public API.
The patch is a bit massive, because lots of small similar changes, sorry
for that.
Sebastien