wangchdo opened a new pull request, #17272:
URL: https://github.com/apache/nuttx/pull/17272

   ## Summary
   
       The `need_switch` flag was not initialized in `event_post()`. Since it is
       a local variable, it could contain a random non-zero value, leading to
       incorrect behavior.
   
       In addition, this patch also fixes an issue where the event clearing
       operation in `event_post()` may not  be performed correctly.
   
   **The root cause of this issue is that during the restructuring of the 
commit log for #17244 based on @jerpelea’s feedback, I inadvertently used an 
outdated implementation of event_post from my local history and failed to 
re-run the tests afterward.
   I’ll take this as a valuable lesson — from now on, whenever I amend a 
commit, I’ll make sure to re-run the tests to ensure no new issues are 
introduced.**
      
   ## Impact
   
   Fix an issue in the event_post implementation. This change has no impact on 
other NuttX functions.
   
   ## Testing
   
   **ostest including event tests passed on board a2g-tc397-5v-tft**:
   <img width="790" height="843" alt="image" 
src="https://github.com/user-attachments/assets/22b20ead-dba7-47f4-b829-cac8072ed247";
 />
   
   
   **ostest including event tests passed on board fvp-armv8r-aarch32**:
   
   <img width="749" height="740" alt="image" 
src="https://github.com/user-attachments/assets/b160cc7f-0371-4f66-8a76-4f06eedd4a56";
 />
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to