Page 1 of 1

After update today!

Posted: Wed May 07, 2025 7:32 pm
by jgu1
Hi team!

After update today the ST7796 display can“t compile anmore? If I roll back from 10 to 9 it work. :roll:

I have also made a test with the ILI9488 and ILI941, seem to work ok.

Br Jorgen

Re: After update today!

Posted: Wed May 07, 2025 9:18 pm
by mnfisher
The error is -Werror=maybe-uninitialized for X and Y in the display 'DrawLine' macro.

This means that for some paths these might be used without being initialised - leading to incorrect results. This may never happen - and they really should be initialised before use rather than relying on them having a certain value (in simulation 0 - but not necessarily on hardware)

You can ignore this (at your own risk !) by adding

Code: Select all

target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-maybe-uninitialized)
To CMakeLists.txt in the 'main' subdirectory of the build folder.

Martin

Re: After update today!

Posted: Thu May 08, 2025 5:26 am
by jgu1
Hi Martin!

Thank you for your help and advice, as always, appreciated ;)

As I mentioned everything work before update ver.9 there must be a bug as you describes in ver.10
I hope and prefer to see and hope the teams will fix this and push it in update :) at least you have found the bug. If not I will use (dare) to use your suggest.

Br Jorgen

Re: After update today!

Posted: Thu May 08, 2025 9:17 am
by medelec35
Hello.
The only change from v9 to v10 was to make the component icon compatible with dark mode.
For some reason an older version got stored within the repo.
I have now updated the repo with the latest version, so your project should compile again when the component has been updated on the library database.
I will let you know when it has.
Many thanks for bringing this to my attention & apologies for the inconvenience.

Thank you Martin for your excellent support.

Re: After update today!

Posted: Thu May 08, 2025 11:00 am
by medelec35
The updated ST7796 component is now available for downloading.

Re: After update today!

Posted: Thu May 08, 2025 2:39 pm
by jgu1
Hi Martin & Martin :P

No apoligies Martin, I know you always "will be there" if challenge. When I see there is is update with these display and ESP32 I always made at test with my testprogram with these display, I have lot of project with this display I still make som update on the project, so if they not work after update, you mm team, will be the first who know if they not working :lol:

Now after last update, (11) it work perfect again.

Thank you to you both.

Br Jorgen

Re: After update today!

Posted: Thu May 08, 2025 6:11 pm
by medelec35
:lol:
That's great!
I'm glad you now can compile again.
Thanks for letting us know.