Javinator9889 opened a new pull request, #19518:
URL: https://github.com/apache/nuttx/pull/19518
## Summary
Currently, the `read` function of the watchdog device is dummy and does
nothing. Although this is fine, it's not useful at all from a userspace
perspective, where you may want to check the current WDOG status.
A wrapper around the `ioctl` `WDIOC_GETSTATUS` has been added as the `read`
function for the WDOG.
## Impact
This should help debugging and developers with watchdog-enabled systems
## Testing
The testing in this case is quite straightforward: `cat /dev/watchdog0`,
whose output was:
```
nsh> cat /dev/watchdog0
Status :
flags : 0x00000000
timeout : 30000
timeleft : 2947
```
--
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]