Skip to content

Conversation

@rondlh
Copy link

@rondlh rondlh commented Sep 15, 2025

Long press on the title bar freezes the TFT.

Requirements

None, affects all TFTs, but perhaps in different ways.

Description

The core issue is a read from an invalid address when the title bar is long pressed because the key that is pressed (tempKey) is used for as index: getCurMenuItems()->items[tempKey].label.index. The title bar is not a menu item which causes a read from a undefined address which typically causes hard fault of the MCU. I can confirm that this freezes the BTT TFT35 V3.0, BTT TFT35 V3.01 and MKS TFT35 V1.0.

Benefits

TFT doesn't freeze anymore when the title bar is long pressed.

Related Issues

#2990

Solves the bug that a long press on the title bar freezes the TFT
@rondlh
Copy link
Author

rondlh commented Sep 15, 2025

Code is final and ready for release.

@github-actions
Copy link

This PR has been automatically marked as stale because it has had no activity for the last 60 days. It will be closed in 7 days if no further activity occurs. Thank you for your contribution.

@github-actions github-actions bot added the Stale label Nov 15, 2025
@digant73
Copy link
Contributor

this PR could be merged

@github-actions github-actions bot removed the Stale label Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants