Question
Missing event WM_NOTIFICATION_RELEASED for STemWin button
Posted on July 22, 2015 at 08:15
STM32F429I-Discovery demonstation application compiled with GCC sometimes hangs on release of a STemWin button.
It is due to a bug in k_bsp.c code in function k_TouchUpdate() which sends wrong coordinates when users lift pen from touch panel. I manage to fix the problem with the following modifications in line 118: Replace:if((ts.X != 0) && (ts.Y != 0))
with:if((ts.X != 0) && (ts.Y != 0)
&& ts.TouchDetected != 0) /* 08/07/2015: Fix WM_NOTIFICATION_RELEASED event missing */ Hope this can help!