Discussion:
[nuttx] Better SSD1306 error reporting
Sebastien Lorquet sebastien@lorquet.fr [nuttx]
2018-02-19 08:19:22 UTC
Permalink
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
Sebastien Lorquet sebastien@lorquet.fr [nuttx]
2018-02-21 10:22:06 UTC
Permalink
We have a record here.

Posted on feb 19 9h20, delivered on feb 21 11h20

Sebastien
Post by Sebastien Lorquet ***@lorquet.fr [nuttx]
 
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
Loading...