andrzej-kaczmarek commented on a change in pull request #1680: app/pwm_test
improvements and pwm_nrf52 fixes
URL: https://github.com/apache/mynewt-core/pull/1680#discussion_r263621144
##########
File path: hw/drivers/pwm/pwm_nrf52/src/pwm_nrf52.c
##########
@@ -297,7 +297,7 @@ nrf52_pwm_open(struct os_dev *odev, uint32_t wait, void
*arg)
inst_id = dev->pwm_instance_id;
if (instances[inst_id].in_use) {
- return (EINVAL);
+ return OS_EINVAL;
Review comment:
OS_EBUSY
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services