Skip to content

Conversation

camoz
Copy link
Contributor

@camoz camoz commented May 31, 2025

The lcd_fill() argument x2 (y2) must be less than dev.params->lines (dev.params->rgb_channels) to not draw to invalid LCD coordinates.

Tested on a Xiao nRF52840 with a ST7735 attached.

This is my first contribution to RIOT and to be honest I did not completely read the Linux kernel coding style guide, but I wrapped the long lines according to https://docs.kernel.org/process/coding-style.html#breaking-long-lines-and-strings.

@github-actions github-actions bot added the Area: tests Area: tests and testing framework label May 31, 2025
@camoz
Copy link
Contributor Author

camoz commented May 31, 2025

In the BENCHMARK_FUNC macro I did a different line breaking to align with the formatting of the second BENCHMARK_FUNC macro below.

@crasbe crasbe added Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors) CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Jun 3, 2025
@riot-ci
Copy link

riot-ci commented Jun 3, 2025

Murdock results

✔️ PASSED

3636d0c tests/drivers/{st77xx,ili9341}: fix coordinates in lcd_fill()

Success Failures Total Runtime
35 0 35 01m:49s

Artifacts

@crasbe
Copy link
Contributor

crasbe commented Jun 4, 2025

Thank you for your first contribution to RIOT OS :)

I tested the changes on an ST7735 display and everything still works as expected. A ILI9341 display will arrive soon for testing.

In the meantime it would be good if you could change the commit message. Currently it is a bit unclear which of the drivers are changed by the commit, so something like tests/drivers/{st77xx,ili9341}: fix coordinates in lcd_fill() would be better.

GitHub has a nice tutorial on how to do that:
https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/changing-a-commit-message

The lcd_fill() argument x2 (y2) must be less than dev.params->lines
(dev.params->rgb_channels) to not draw to invalid LCD coordinates.
@camoz camoz changed the title tests/drivers: fix coordinates in lcd_fill() tests/drivers/{st77xx,ili9341}: fix coordinates in lcd_fill() Jun 10, 2025
@camoz
Copy link
Contributor Author

camoz commented Jun 10, 2025

Fixed, thank you for the link.

(My intention with the prefix tests/drivers: was that the issue is now fixed in all driver tests, which happen to be just the two st77xx and ili9341.)

Let me know if this PR needs further adjustments.

@crasbe crasbe added this pull request to the merge queue Jun 10, 2025
Merged via the queue into RIOT-OS:master with commit 168799c Jun 10, 2025
26 checks passed
@crasbe
Copy link
Contributor

crasbe commented Jun 10, 2025

Thank you for addressing the small nitpick and congratulations on your first merged PR :)

@Teufelchen1 Teufelchen1 added this to the Release 2025.07 milestone Jul 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: bug The issue reports a bug / The PR fixes a bug (including spelling errors)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants