saramonteiro opened a new pull request #4169:
URL: https://github.com/apache/incubator-nuttx/pull/4169


   ## Summary 
   
   This MR:
   - Makes the output readable because the gpio example reads the output.
   - Remove unnecessary variable that could be replaced by the loop index. 
Besides that, the used variable to register the drivers were being used without 
reseting to register the input gpio drivers. What was leading to a weird 
registration: (`/dev/gpout0`, `/dev/gpout1`, `/dev/gpint2`) instead of 
(`/dev/gpout0`, `/dev/gpout1`, `/dev/gpint0`).
   
   ## Impact
   
   Now gpio example runs and verify value is really representing the value of 
the output.
   
   ## Testing
   
   Using gpio example.
   
   Before:
   ```
   nsh> gpio -o 1 /dev/gpout0
   Driver: /dev/gpout0
     Output pin:    Value=0
     Writing:       Value=1
     Verify:        Value=0
   ```
   
   After:
   
   ```
   nsh> gpio -o 1 /dev/gpout0
   Driver: /dev/gpout0
     Output pin:    Value=0
     Writing:       Value=1
     Verify:        Value=1
   ```
   


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