stamparm opened a new pull request, #4215:
URL: https://github.com/apache/nuttx-apps/pull/4215

   ## Summary
   
   `running` is set to 0 when candump stops, but main() never sets it back to 
1. In a flat build statics keep their values between runs, so every later 
candump in the same boot leaves its loop at once with no output. This resets it 
at the start of main().
   
   ## Impact
   
   candump only. The first run behaves as before.
   
   ## Testing
   
   Host: Ubuntu 24.04 x86_64, gcc 13.3.0. Target: sim:can on master (nuttx 
9ceec6e9, nuttx-apps 46f9031), the host's can0 being a vcan. `candump -n 1 
can0` twice while the host sends one frame each time:
   
   ```
   before:
   run 1: can0  121   [2]  AA 01
   run 2: returns at once, no output
   
   after:
   run 1: can0  121   [2]  AA 01
   run 2: can0  122   [2]  AA 02
   ```
   
   Also seen on 13.1.0, qemu-intel64 with a CTU CAN FD PCI card.
   


-- 
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